media_request_object_find(9)
okay so bestie, welcome to media_request_object_find(9) from the Kernel API Manual β yes, that's the page name and the manual name, folded in right here at the top like a little name tag π
πΈ NAME πΈ
media_request_object_find β Find an object in a request π¦
β¨ SYNOPSIS β¨
struct media_request_object * media_request_object_find (struct
media_request *req , const struct media_request_object_ops *ops , void
*priv );
π ARGUMENTS π
reqβ the media request πopsβ find an object with thisopsvalue β¨privβ find an object with thisprivvalue π
π DESCRIPTION π
Okay so here's the tea: both ops and priv must be non-NULL. no skipping, bestie π
It returns the object pointer or NULL if not found. The caller must call media_request_object_put once it finished using the object β like, actually must. don't leave it hanging π
Since this function needs to walk the list of objects, it takes the req->lock spin lock to make this safe. safety first, always π
Heads up: after you find your object, don't ghost it β call media_request_object_put when you're done π«Ά
π₯ SEE ALSO π₯
Kernel file: ./include/media/media-request.h β and the whole squad:
enum media_request_state(9)struct media_request(9)media_request_lock_for_access(9)media_request_unlock_for_access(9)media_request_lock_for_update(9)media_request_unlock_for_update(9)media_request_get(9)media_request_put(9)media_request_get_by_fd(9)media_request_alloc(9)media_request_mark_manual_completion(9)media_request_manual_complete(9)struct media_request_object_ops(9)struct media_request_object(9)media_request_object_get(9)media_request_object_put(9)media_request_object_init(9)media_request_object_bind(9)media_request_object_unbind(9)media_request_object_complete(9)
This page is from source/version ./include/media, dated October 2026, and its page name is media_request_object_find(9). bye bestie, go find those objects and slay πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms