video_device_pipeline(9)
π 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:
enum vfl_devnode_type(9)enum vfl_devnode_direction(9)enum v4l2_video_device_flags(9)struct v4l2_prio_state(9)v4l2_prio_init(9)v4l2_prio_change(9)v4l2_prio_open(9)v4l2_prio_close(9)v4l2_prio_max(9)v4l2_prio_check(9)struct v4l2_file_operations(9)struct video_device(9)media_entity_to_video_device(9)to_video_device(9)__video_register_device(9)video_register_device(9)video_register_device_no_warn(9)video_unregister_device(9)video_device_alloc(9)video_device_release(9)video_device_release_empty(9)v4l2_disable_ioctl(9)video_get_drvdata(9)video_set_drvdata(9)video_devdata(9)video_drvdata(9)video_device_node_name(9)video_is_registered(9)v4l2_debugfs_root(9)video_device_pipeline_start(9)__video_device_pipeline_start(9)video_device_pipeline_stop(9)__video_device_pipeline_stop(9)video_device_pipeline_alloc_start(9)
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
- 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