vb2_streamon(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 to struct vb2_queue with the videobuf2 queue. like, the queue. your queue. the one you're working with πŸ’–
  • type β€” the type argument passed from userspace to the vidioc_streamon handler, exactly as defined by enum 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:

  1. verifies the current state βœ…
  2. 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, titled vb2_streamon(9) β€” so go stream something iconic, bestie πŸ“πŸ’œ
πŸ“¦ where this page comes from