vb2_create_bufs(9)
π vb2_create_bufs(9) β a Kernel API Manual moment
okay bestie, buckle up, because we're in the Kernel API Manual today and this one's lowkey a little baddie π
β¨ NAME β¨
vb2_create_bufs β it's the wrapper for vb2_core_create_bufs() that also does a vibe check on the memory and type values before anything goes down. no cap, that's its whole thing π
πΈ SYNOPSIS πΈ
int vb2_create_bufs (struct vb2_queue *q , struct v4l2_create_buffers
*create );
π¦ ARGUMENTS π¦
qβ pointer tostruct vb2_queuewith the videobuf2 queue. yes, the whole queue. she's the main character here πcreateβ the creation parameters, passed from userspace to thev4l2_ioctl_ops->vidioc_create_bufshandler in the driver. so like, the user's little wishlist gets handed straight to your driver's handler π
π SEE ALSO π
okay this section is literally the group chat, everyone's here π
- Kernel file
./include/media/videobuf2-v4l2.hstruct vb2_v4l2_buffer(9) vb2_find_buffer(9)vb2_querybuf(9)vb2_reqbufs(9)vb2_prepare_buf(9)vb2_qbuf(9)vb2_expbuf(9)vb2_dqbuf(9)vb2_streamon(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 bestie, that's the whole page β go forth and create those bufs responsibly π«Ά
and that's a wrap! this little masterpiece lives over in ./include/media, dated October 2026, and it's giving iconic kernel documentation energy. mwah πβ¨
π¦ 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