STRUCT V4L2_CREATE_BUFFERS32(9)
π 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 theV4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTScapability and is configured for MMAP streaming I/O. read that twice, bestie.max_num_buffersβ if theV4L2_BUF_CAP_SUPPORTS_MAX_NUM_BUFFERScapability 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: thoseflagsare conditional and thosereservedfields 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
- 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