STRUCT VB2_V4L2_BUFFER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 β€” embedded struct vb2_buffer. it's built in, bestie 🫢.
  • flags β€” buffer informational flags.
  • field β€” field order of the image in the buffer, as defined by enum v4l2_field.
  • timecode β€” frame timecode.
  • sequence β€” sequence count of this frame.
  • request_fd β€” the request_fd associated 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:


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