vb2_streamoff(9)
π 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 tostruct vb2_queuewith videobuf2 queue. thatβs the queue bestie. π«Άtypeβ thetypeargument passed from userspace to thevidioc_streamoffhandler. 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:
- verifies current state
- 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 π₯
- 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_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)vb2_video_unregister_device(9)
signed off from ./include/media, October 2026 πβ¨
π¦ 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