media_request_get_by_fd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… media_request_get_by_fd(9) πŸ’…

okay bestie, we’re in the Kernel API Manual and this page is about grabbing a media request by its fd β€” it’s giving β€œyou have a file descriptor, now get the request” energy. πŸ¦‹βœ¨


🌸 NAME 🌸

media_request_get_by_fd β€” get a media request by fd. Literally what it says on the tin. No cap. πŸ’–

✨ SYNOPSIS ✨

struct media_request * media_request_get_by_fd (struct media_device
       *mdev , int request_fd );

πŸŽ€ ARGUMENTS πŸŽ€

  • mdev β€” the media device this request belongs to. Like, whose request is it? This device’s request. 🫢
  • request_fd β€” the file descriptor of the request. The fd in question, bestie. πŸ”₯

πŸ’– DESCRIPTION πŸ’–

okay so here’s the tea: this function gets the request represented by request_fd that is owned by the media device. 🧚

  • If requests are not supported by this driver, it returns a -EBADR error pointer. Not the vibe, but important. 😭
  • If the request was not found, it returns -EINVAL. Bestie, check that fd. πŸ’€
  • If the request is found, you get the pointer to the request β€” but listen, the caller will have to call media_request_put when it finished using the request. That’s the cleanup rule, periodt. πŸ’…βœ¨
reminder: the caller will have to call media_request_put when it finished using the request. don’t leave it hanging, okay? 🫢

🌈 SEE ALSO 🌈


mwah πŸ’‹ that’s the whole page, bestie β€” source/version is ./include/media and the date is October 2026. stay hydrated, remember media_request_put, and slay your media requests πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from