STRUCT V4L2_FH(9)
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 tostruct video_device, no cap.ctrl_handlerβ pointer tostruct v4l2_ctrl_handler, iconic.prioβ priority of the file handler, as defined byenum v4l2_priority. Main character priority settings, literally πwaitβ event's wait queue. The event is waiting here, iykyk π¦subscribe_lockβ serialises changes to thesubscribedlist; 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 atavailablelist. Math but make it cute π’sequenceβ event sequence number. Order matters, periodt πm2m_ctxβ pointer tostruct 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
- 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