v4l2_pipeline_link_notify(9)
π v4l2_pipeline_link_notify(9)
okay so bestie, we're in the Kernel API Manual today and this one's a certified throwback β it's giving "senior dev who's seen things" energy. Buckle up π
β¨ NAME β¨
v4l2_pipeline_link_notify β the link management notification callback π¦
πΈ SYNOPSIS πΈ
int v4l2_pipeline_link_notify (struct media_link *link , u32 flags ,
unsigned int notification );
π ARGUMENTS π
linkβ the link, bestie. that's the whole description. it's THE link πflagsβ the new link flags that are gonna get applied β¨notificationβ the link's state change notification type, i.e. one of theMEDIA_DEV_NOTIFY_*fam π«Ά
π₯ DESCRIPTION π₯
THIS FUNCTION IS DEPRECATED. DO NOT USE IN NEW DRIVERS. USE RUNTIME PM ON SUB-DEVICE DRIVERS INSTEAD. π
like. they yelled it in all caps for a reason, ok? not me being the messenger π this one is legacy. new drivers, do not touch. use runtime PM on the sub-device drivers instead, periodt.
so what does it even do? it reacts to link management happening on powered pipelines by updating the use count of every entity on the source side and the sink side of the link. entities get powered on or off accordingly β main character energy for the whole graph π
and here's the pairing rule: the use of this function should be paired with v4l2_pipeline_pm_{get,put}(). they're a set. don't split them up π
it returns 0 on success, or a negative error code on failure. and ngl, the little optimism moment here: powering entities off is assumed to never fail β¨. also, this function will not fail for disconnection events β she simply does not care π
π SEE ALSO π
- the kernel file
./include/media/v4l2-mc.h v4l2_mc_create_media_graph(9)v4l_enable_media_source(9)v4l_disable_media_source(9)v4l2_create_fwnode_links_to_pad(9)v4l2_create_fwnode_links(9)v4l2_pipeline_pm_get(9)v4l2_pipeline_pm_put(9)
a whole friend group, fr fr π«Ά
and that's the page, bestie! π¦ this iconic little artifact lives in ./include/media and got its timestamp of October 2026 β shoutout to the legends who documented it, mwah π <rainbow>v4l2_pipeline_link_notify(9) out π</rainbow>
π¦ 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