video_device_pipeline(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… video_device_pipeline(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the video_device_pipeline(9) page, brought to you by the Kernel API Manual. this one's short and sweet β€” it's giving "small function, big pipeline energy" ✨


🌸 NAME 🌸

video_device_pipeline β€” get the media pipeline a video device is part of πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct media_pipeline * video_device_pipeline (struct video_device *vdev
);

like yes, that's the whole signature, she's compact πŸ’…


πŸ“ ARGUMENTS πŸ“

  • vdev β€” the video device. that's it, that's the vibe check 🌈

✨ DESCRIPTION ✨

okay so here's the tea πŸ«– β€” this function returns the media pipeline that a video device has been associated with when you constructed the pipeline with video_device_pipeline_start.

the pointer stays valid until video_device_pipeline_stop is called. that's the deal, no cap β€” after the stop, don't go touching it 😭

also important: the video device must contain a single pad. one pad. not two. not zero. one. πŸ‘‘

and ngl, this one is just a convenience wrapper around media_entity_pipeline β€” it's literally the shortcut bestie so you don't have to do it the long way 🧚


πŸ”₯ RETURN πŸ”₯

it hands you back the media_pipeline the video device is part of πŸ’–

but if the video device is not part of any pipeline? you get NULL. no pipeline, no pointer, no problem πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

okay this list is long and honestly iconic, buckle up bestie πŸŽ€

kernel file ./include/media/v4l2-dev.h, plus:


that's the whole page babes, go forth and pipeline responsibly 🫢

sign-off szn: this little icon lives in ./include/media, and the page is dated October 2026 β€” that's the source/version and date, mentioned with love, mwah πŸ’œπŸŒΈ

πŸ“¦ where this page comes from