STRUCT V4L2_SUBSCRIBED_EVENT_OPS(9)
π struct v4l2_subscribed_event_ops(9) π
okay so this is the Kernel API Manual page for struct v4l2_subscribed_event_ops, and honestly bestie, it's a little cutie. no cap.
πΈ NAME πΈ
struct v4l2_subscribed_event_ops β the operations struct for subscribed events. literally what it says on the tin π
β¨ SYNOPSIS β¨
here's the whole struct, bestie, every line of it, exactly as it lives:
struct v4l2_subscribed_event_ops {
int (*add)(struct v4l2_subscribed_event *sev, unsigned int elems);
void (*del)(struct v4l2_subscribed_event *sev);
void (*replace)(struct v4l2_event *old, const struct v4l2_event
*new);
void (*merge)(const struct v4l2_event *old, struct v4l2_event *new);
};
look at her. four function pointers. main character energy π₯ (and yes, the replace line wraps weird in the synopsis β that's just how she is, we don't judge π
)
π¦ Members π¦
breaking down the members one by one, because you deserve to know every single one:
addβ an optional callback, and it gets called when a brand new listener is added. π«Άdelβ also optional, and it fires when a listener stops listening. bye bestie πreplaceβ optional callback that can replace eventoldwith eventnew.mergeβ optional callback that can merge eventoldinto eventnew.
note the vibe: they're all optional. nobody's forcing you to implement any of these, it's giving "do it if it sparks joy" π
π SEE ALSO π
go look at the kernel file ./include/media/v4l2-event.h, and then go be nosy about all of these:
struct v4l2_kevent(9)struct v4l2_subscribed_event(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)
like, read them all. iykyk π§ββοΈ
β the cute sign-off β
okay that's the whole page, you ate it up. source lives at ./include/media, dated October 2026, and it's filed under struct v4l2_...ed_event_ops(9) in case you need to find her again. mwah πππ
π¦ 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