STRUCT VB2_V4L2_BUFFER(9)
π struct vb2_v4l2_buffer(9) π
okay bestie, this is the Kernel API Manual page for struct vb2_v4l2_buffer, and it is literally here to describe video buffer information for v4l2 π. no cap, every field in this thing has main character energy, so let's get into it.
π NAME π
struct vb2_v4l2_buffer β video buffer information for v4l2. periodt.
πΈ SYNOPSIS πΈ
struct vb2_v4l2_buffer {
struct vb2_buffer vb2_buf;
__u32 flags;
__u32 field;
struct v4l2_timecode timecode;
__u32 sequence;
__s32 request_fd;
bool is_held;
struct vb2_plane planes[VB2_MAX_PLANES];
};
π Members π
vb2_bufβ embeddedstruct vb2_buffer. it's built in, bestie π«Ά.flagsβ buffer informational flags.fieldβ field order of the image in the buffer, as defined byenum v4l2_field.timecodeβ frame timecode.sequenceβ sequence count of this frame.request_fdβ therequest_fdassociated with this buffer.is_heldβ if true, then this capture buffer was held.planesβ plane information (userptr/fd,length,bytesused,data_offset).
π¦ Description π¦
This struct should contain enough information to be able to cover all the fields of struct v4l2_buffer at videodev2.h. like, all of them π
.
β¨ SEE ALSO β¨
the kernel file ./include/media/videobuf2-v4l2.h is the home base, and the squad is:
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_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)
xoxo, your kernel bestie π β source is ./include/media, date is October 2026, and the title is struct vb2_v4l2_buffer(9). 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