STRUCT MEDIA_REQUEST_OBJECT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct media_request_object(9) β€” Kernel API Manual

okay bestie, welcome to the ✨ group chat ✨ β€” this is the Kernel API Manual page for struct media_request_object, and honestly? she's giving backstage-pass energy. πŸŽ€ let's get into it.


🌸 NAME 🌸

struct media_request_object β€” an opaque object that belongs to a media request. that's it, that's the vibe. πŸ’…


⭐ SYNOPSIS ⭐

struct media_request_object {
    struct media_device *mdev;
    const struct media_request_object_ops *ops;
    void *priv;
    struct media_request *req;
    struct list_head list;
    struct kref kref;
    bool completed;
 };

like, look at her. seven fields. all iconic, no filler. πŸ‘‘


πŸ¦‹ Members πŸ¦‹

okay so let's do a little meet-and-greet with every single field, because they ALL matter, no skipping, periodt. 🫢

  • mdev β€” the media device this object belongs to. her home base, her main character setting. 🏠
  • ops β€” the object's operations. yep, this is where the behavior lives. πŸ”₯
  • priv β€” the object's priv pointer. private business, iykyk. πŸ™ˆ
  • req β€” the request this object belongs to (and yes, it can be NULL β€” sometimes she's unbothered, solo, thriving πŸ’€).
  • list β€” the list entry of the object for struct media_request. she's on the list, literally. πŸ“‹
  • kref β€” reference count of the object. and hear me on this one: acquire before releasing req->lock. that's not a suggestion bestie, that's the rule. ⚠️
  • completed β€” if true, then this object was completed. if false… well. not yet. 😭

✨ Description ✨

An object related to the request. like, she's an object related to the request, that's the whole deal. 🧚

and here's the cute structural detail: this struct is always embedded in another struct that contains the actual data for this request object. so she's never out here alone β€” she's always living inside a bigger struct, like a little nesting doll situation. πŸͺ†πŸ’–

ngl, this is an opaque object, so don't go poking at her internals assuming you know the lore. treat her right. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

everything else in the media-request cinematic universe, all linked up below, and yes you should go read them too:


and that's the page, bestie!! 🫢 this one lives at ./include/media, and the version tag says October 2026 β€” so yeah, mark your calendar, she's dated, she's documented, she's struct media_request_object(9) and she ate. πŸŒˆπŸ’œ mwah πŸ’‹

πŸ“¦ where this page comes from