media_request_object_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 this ops value ✨
  • priv β€” find an object with this priv value πŸŽ€

πŸ’… 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:


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