STRUCT V4L2_CREATE_BUFFERS32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct v4l2_create_buffers32(9) β€” Kernel API Manual, bestie edition

okay so welcome to the group chat, this is the manual page for struct v4l2_create_buffers32 and honestly it's giving "compat ioctl icon" energy the whole way through. pull up a chair πŸŽ€


✨ NAME ✨

struct v4l2_create_buffers32 β€” literally just the argument struct for VIDIOC_CREATE_BUFS32, no cap πŸ’…


🌸 SYNOPSIS 🌸

struct v4l2_create_buffers32 {
    __u32 index;
    __u32 count;
    __u32 memory;
    struct v4l2_format32    format;
    __u32 capabilities;
    __u32 flags;
    __u32 max_num_buffers;
    __u32 reserved[5];
 };

look at her. iconic. every field exactly where it should be 🫢


πŸ¦‹ Members πŸ¦‹

  • index β€” on return, this is the index of the first created buffer. so like, where the party starts ✨
  • count β€” entry: number of requested buffers. you say how many you want, she does her thing.
  • memory β€” the buffer memory type. iykyk.
  • format β€” the frame format, for which buffers are requested. the whole point, honestly πŸ’–
  • capabilities β€” capabilities of this buffer type. very demure, very mindful.
  • flags β€” additional buffer management attributes. BUT 🚨 these are ignored unless the queue has the V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS capability and is configured for MMAP streaming I/O. read that twice, bestie.
  • max_num_buffers β€” if the V4L2_BUF_CAP_SUPPORTS_MAX_NUM_BUFFERS capability flag is set, this field indicate the maximum possible number of buffers for this queue. (yes, "indicate." she said what she said 🌈)
  • reserved β€” future extensions πŸ‘€ the reserved [5] girlies are just waiting their turn

⭐ Return ⭐

number of created buffers. that's it, that's the return value, and we love a straightforward queen πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/media/v4l2-core/v4l2-compat-ioctl32.c β€” go read the source, it slaps
  • v4l2_compat_ioctl32(9)

real talk though: those flags are conditional and those reserved fields are not yours to touch. respect the ABI, protect your vibe check πŸ™ˆ

and that's the page!! from ./drivers/media/v4l2-core, dated October 2026, titled struct v4l2_...te_buffers32(9) β€” mwah, go create some buffers bestie, ily, bye πŸ§šπŸ’œ

πŸ“¦ where this page comes from