STRUCT V4L2_SUBSCRIBED_EVENT_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 event old with event new.
  • merge β€” optional callback that can merge event old into event new.
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:

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