vb2_video_unregister_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to struct 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:


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