vb2_querybuf(9)
π vb2_querybuf(9) Β· Kernel API Manual π
okay so bestie, youβre in the Kernel API Manual and this page is all about vb2_querybuf(9). itβs giving βask the kernel nicely about a video bufferβ energy, and weβre gonna keep every fact exactly where it belongs π
πΈ NAME πΈ
vb2_querybuf β Query video buffer information β¨
β¨ SYNOPSIS β¨
int vb2_querybuf (struct vb2_queue *q , struct v4l2_buffer *b );
π ARGUMENTS π
qβ pointer tostruct vb2_queuewith videobuf2 queue. this is the queue pointer, bestie, no cap.bβ buffer structure passed from userspace to thev4l2_ioctl_ops->vidioc_querybufhandler in driver. itβs the userspace buffer info coming through your driverβs handler π«Ά
π¦ DESCRIPTION π¦
Should be called from vidioc_querybuf ioctl handler in driver. thatβs the vibe: this is the helper your handler calls when itβs time to answer a querybuf request.
This function will verify the passed v4l2_buffer structure and fill the relevant information for the userspace. so it does a little vibe check on the incoming v4l2_buffer and then fills in the relevant info for userspace β¨
The return values from this function are intended to be directly returned from vidioc_querybuf handler in driver. like, do not overthink the return path β the intended move is to hand these return values straight back from the vidioc_querybuf handler in your driver π
π SEE ALSO π
Kernel file ./include/media/videobuf2-v4l2.h and struct vb2_v4l2_buffer(9), plus the whole videobuf2 bestie roster: vb2_find_buffer(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_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) π¦
mwah π thatβs the whole page, bestie β source/version ./include/media, date October 2026, filed under the vb2_querybuf(9) manpage title. slay and bye π«Ά
π¦ 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