v4l2_src_cha...ev_subscribe(9)
π NAME π
v4l2_src_change_event_subdev_subscribe β bestie, it's the variant of v4l2_event_subscribe() that's specifically meant to subscribe you to events of the type %V4L2_EVENT_SOURCE_CHANGE, and literally nothing else. It's giving "one job, and it does it."
So like, this page is from the Kernel API Manual, section 9, and the whole function name is v4l2_src_change_event_subdev_subscribe (the page title is just it getting cutely abbreviated to v4l2_src_cha...ev_subscribe(9) because terminal column budgets are real π). It's the subdev-flavoured sibling of v4l2_src_change_event_subscribe(9) β iykyk π§
β¨ SYNOPSIS β¨
int v4l2_src_change_event_subdev_subscribe (struct v4l2_subdev *sd ,
struct v4l2_fh *fh , struct v4l2_event_subscription *sub );
Return type is int, three pointers go in, no cap. π«Ά
π ARGUMENTS π
sdβ pointer tostruct v4l2_subdev. Yes, the subdev. It's the main character here, we love her.fhβ pointer tostruct v4l2_fh. This is the file handle situation, keeping track of who's subscribed to what.subβ pointer tostruct v4l2_event_subscription. The subscription itself, aka the actual thing you're signing up for. Slay.
That's it. Three args. No hidden extras, no jump scares. π
π¦ SEE ALSO π¦
Kernel file ./include/media/v4l2-event.h β go read it, it's iconic.
And the whole friend group of related functions and structs, all of them, in their original order bestie:
struct v4l2_kevent(9)struct v4l2_subscribed_event_ops(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)
Like, seriously, if you're poking at event subscriptions, at least skimv4l2_event_subscribe(9)andv4l2_event_unsubscribe(9)first β they're the blueprint. πΈ
Ok that's the whole page, love you, go forth and subscribe to source-change events responsibly β¨π
β with love, from ./include/media, dated October 2026, signing off as v4l2_src_cha...ev_subscribe(9) ππ
π¦ 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