STRUCT V4L2_SUBSCRIBED_EVENT(9)
β¨ struct v4l2_subscribed_event(9) β¨
okay so this is from the Kernel API Manual, and we're talking about the struct with the longest name in the group chat: struct v4l2_subscribed_event. bestie. it's the internal struct that represents a subscribed event. iykyk π
πΈ NAME πΈ
struct v4l2_subscribed_event β Internal struct representing a subscribed event. that's literally it, that's the whole vibe. π«Ά
π¦ SYNOPSIS π¦
struct v4l2_subscribed_event {
struct list_head list;
u32 type;
u32 id;
u32 flags;
struct v4l2_fh *fh;
struct list_head node;
const struct v4l2_subscribed_event_ops *ops;
unsigned int elems;
unsigned int first;
unsigned int in_use;
struct v4l2_kevent events[];
};
no cap, look at that flexible array member at the end, it's giving main character energy π
π Members π
okay let's go member by member, no skipping, we do not skip in this house π€
listβ the list node for thev4l2_fh->subscribedlist. it's the little hook that keeps you in the friend group π«typeβ event type. what kind of event are we even talking about, y'know?idβ the associated object ID (e.g. control ID).0if there isn't any. so if you see a zero, they're single and ready to mingle πflagsβ a copy ofv4l2_event_subscription->flags. copy, not reference. respect the clone π§fhβ the filehandle that subscribed to this event. the original subscriber, the one who hit follow first πnodeβ list node that hooks into the object's event list (if there is one). note the if there is one, sometimes there just isn't, and that's fine πopsβv4l2_subscribed_event_ops. the ops. the whole personality of this thing honestly.elemsβ the number of elements in theeventsarray. count 'em, bestie π’firstβ the index of the events containing the oldest available event. grandma of the array, respect her πΈin_useβ the number of queued events. how many are currently in the queue, lining up like it's a club πeventsβ an array ofelemsevents. yes,elemsagain. they're linked like that π
β SEE ALSO β
the kernel file is ./include/media/v4l2-event.h β go read her, she's iconic β¨
and here's the whole extended friend group, every single one, no leaving anyone out:
struct v4l2_kevent(9)struct v4l2_subscribed_event_ops(9)v4l2_event_dequeue(9)v4l2_event_queue(9)v4l2_event_queue_fh(9)v4l2_event_wake_all(9)v4l2_event_pending(9)v4l2_event_subscribe(9)v4l2_event_unsubscribe(9)v4l2_event_unsubscribe_all(9)v4l2_event_subdev_unsubscribe(9)v4l2_src_change_event_subscribe(9)v4l2_src_change_event_subdev_subscribe(9)
and that's the tea β go subscribe to an event, bestie, you've got this π π₯
signing off from ./include/media, dated October 2026 β mwah, love u, read ur headers πππ¦
π¦ 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