vb2_streamon(9)
β¨ vb2_streamon π
okay so real talk, the manual name here is vb2_streamon, and it lives in section 9 of the Kernel API Manual β that's the kernel-internals girlies' section, iykyk π
πΈ NAME πΈ
vb2_streamon β start streaming. that's it, that's the whole vibe. we're turning the stream ON, bestie π¦
β SYNOPSIS β
int vb2_streamon (struct vb2_queue *q , enum v4l2_buf_type type );
π«Ά ARGUMENTS π«Ά
qβ pointer tostruct vb2_queuewith the videobuf2 queue. like, the queue. your queue. the one you're working with πtypeβ the type argument passed from userspace to thevidioc_streamonhandler, exactly as defined byenum v4l2_buf_type. it comes from userspace, so treat it with the respect (and suspicion) it deserves π
π₯ DESCRIPTION π₯
okay so first thing: this function should be called from the v4l2_ioctl_ops->vidioc_streamon handler of a driver. that's its whole moment, its main character energy β¨
here's what it does, in order, no cap:
- verifies the current state β
- passes any previously queued buffers to the driver and starts streaming π¬
and the return values from this function are intended to be directly returned from the v4l2_ioctl_ops->vidioc_streamon handler in the driver. like, don't overthink it, don't remix it, just hand them straight back π
π SEE ALSO π
kernel file ./include/media/videobuf2-v4l2.h, plus the whole friend group: 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_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), vb2_video_unregister_device(9) π
fr fr this page comes to you from./include/media, dated October 2026, titledvb2_streamon(9)β so go stream something iconic, bestie ππ
π¦ 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