STRUCT V4L2_FH(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct v4l2_fh(9) β€” Kernel API Manual ✨

🌸 NAME 🌸

struct v4l2_fh β€” describes a V4L2 file handler, bestie. That's the whole vibe πŸ’…

✨ SYNOPSIS ✨

struct v4l2_fh {
    struct list_head        list;
    struct video_device     *vdev;
    struct v4l2_ctrl_handler *ctrl_handler;
    enum v4l2_priority      prio;
    wait_queue_head_t wait;
    struct mutex            subscribe_lock;
    struct list_head        subscribed;
    struct list_head        available;
    unsigned int            navailable;
    u32 sequence;
    struct v4l2_m2m_ctx     *m2m_ctx;
 };

πŸŽ€ Members πŸŽ€

  • list β€” list of file handlers. It's giving "the group chat roster" energy 🫢
  • vdev β€” pointer to struct video_device, no cap.
  • ctrl_handler β€” pointer to struct v4l2_ctrl_handler, iconic.
  • prio β€” priority of the file handler, as defined by enum v4l2_priority. Main character priority settings, literally πŸ’…
  • wait β€” event's wait queue. The event is waiting here, iykyk πŸ¦‹
  • subscribe_lock β€” serialises changes to the subscribed list; guarantees that the add and del event callbacks are orderly called. Very "keep the group chat drama in order" of it πŸ”₯
  • subscribed β€” list of subscribed events. Obsessed with a curated list ✨
  • available β€” list of events waiting to be dequeued. They're lined up and ready πŸŽ€
  • navailable β€” number of available events at available list. Math but make it cute πŸ”’
  • sequence β€” event sequence number. Order matters, periodt 🌈
  • m2m_ctx β€” pointer to struct v4l2_m2m_ctx. We love a context pointer πŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/media/v4l2-fh.h is the place to be πŸ’–, and the whole squad is: file_to_v4l2_fh(9), v4l2_fh_init(9), v4l2_fh_add(9), v4l2_fh_open(9), v4l2_fh_del(9), v4l2_fh_exit(9), v4l2_fh_release(9), v4l2_fh_is_singular(9), v4l2_fh_is_singular_file(9). Go check 'em, bestie 🧚


Okay that's the whole page πŸ’–. This one came from source/version ./include/media, dated October 2026, and the manual page is struct v4l2_fh(9) β€” she ate, fr fr 🫢🌸

πŸ“¦ where this page comes from