vb2_streamoff(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vb2_streamoff(9) πŸ’…

okay so we are in the Kernel API Manual, and this page is literally the vb2_streamoff stop-streaming moment. bestie, it’s giving β€œwrap it up” energy for videobuf2. πŸŽ€

✨ NAME ✨

vb2_streamoff β€” stop streaming. periodt. πŸ’–

🌸 SYNOPSIS 🌸

int vb2_streamoff (struct vb2_queue *q , enum v4l2_buf_type type );

πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” pointer to struct vb2_queue with videobuf2 queue. that’s the queue bestie. 🫢
  • type β€” the type argument passed from userspace to the vidioc_streamoff handler. yep, that one. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, this should be called from the vidioc_streamoff handler of a driver. no cap.

here’s what this function does:

  1. verifies current state
  2. stop streaming and dequeues any queued buffers, including those previously passed to the driver (after waiting for the driver to finish)

this call can be used for pausing playback. lowkey iconic. πŸŽ€

the return values from this function are intended to be directly returned from the vidioc_streamoff handler in the driver. like, hand them straight back out. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯


signed off from ./include/media, October 2026 πŸ’œβœ¨

πŸ“¦ where this page comes from