vb2_video_unregister_device(9)
π
vb2_video_unregister_device(9) β Kernel API Manual energy π
okay bestie, welcome to the Kernel API Manual β this page is literally all about vb2_video_unregister_device(9), and it's giving βclean unregister, no loose endsβ vibes. π
πΈ NAME πΈ
vb2_video_unregister_device β unregister the video device and release the queue. That's the whole name vibe, periodt. β¨
β¨ SYNOPSIS β¨
okay so the signature is literally:
void vb2_video_unregister_device (struct video_device *vdev );
π ARGUMENTS π
vdevβ pointer tostruct video_device. yep, that's the one π«Ά
π DESCRIPTION π
If your driver uses vb2_fop_release/_vb2_fop_release, bestie, then it should use vb2_video_unregister_device instead of video_unregister_device. no cap.
This function will call video_unregister_device and then release the vb2_queue if streaming is in progress. That will stop streaming, and it will simplify the unbind sequence since after this call all subdevs will have stopped streaming as well. iconic cleanup behavior honestly π₯
π SEE ALSO π
Kernel file ./include/media/videobuf2-v4l2.h:
struct vb2_v4l2_buffer(9)vb2_find_buffer(9)vb2_querybuf(9)vb2_reqbufs(9)vb2_create_bufs(9)vb2_prepare_buf(9)vb2_qbuf(9)vb2_expbuf(9)vb2_dqbuf(9)vb2_streamon(9)vb2_streamoff(9)vb2_queue_init(9)vb2_queue_init_name(9)vb2_queue_release(9)vb2_queue_change_type(9)vb2_poll(9)vb2_queue_is_busy(9)
okay that's the whole page, go unregister that device bestie π«Ά source/version: ./include/media Β· date: October 2026 Β· page: vb2_video_unregister_device(9) β mwah, bye! π
π¦ 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