STRUCT IRIS_BUFFER(9)
π struct iris_buffer(9) β a Kernel API Manual moment
okay so bestie, buckle up π we're looking at struct iris_buffer from the Kernel API Manual and honestly it's giving "kernel driver glow-up". It's a struct page, so there's literally no prose description after the dash in the NAME β she's a mystery, an icon, a struct with no subtitle. Periodt.
β¨ NAME β¨
struct iris_buffer β (and that's it, no description, she said "my name is enough" π
)
π SYNOPSIS π
struct iris_buffer {
struct vb2_v4l2_buffer vb2;
struct list_head list;
struct iris_inst *inst;
enum iris_buffer_type type;
u32 index;
int fd;
size_t buffer_size;
u32 data_offset;
size_t data_size;
dma_addr_t device_addr;
void *kvaddr;
unsigned long dma_attrs;
u32 flags;
u64 timestamp;
enum iris_buffer_attributes attr;
};
no cap, that's the whole shape of her π¦
πΈ Members πΈ
bestie these are the fields, and every single one is doing main character energy in her own lane:
vb2β the v4l2 vb2 buffer πlistβ list head for theiris_buffersstructureinstβ iris instance structuretypeβ enum for type of iris bufferindexβ identifier for the iris bufferfdβ file descriptor of the bufferbuffer_sizeβ accessible buffer size in bytes starting fromaddr_offsetdata_offsetβ accessible buffer offset from base addressdata_sizeβ data size in bytesdevice_addrβ device address of the bufferkvaddrβ kernel virtual address of the bufferdma_attrsβ dma attributesflagsβ buffer flags. It is represented as bit masks βtimestampβ timestamp of the buffer in nano seconds (ns)attrβ enum for iris buffer attributes
like, fifteen fields and not one of them is filler. we love a structured queen π
π SEE ALSO π
- Kernel file
./drivers/media/platform/qcom/iris/iris_buffer.henumiris_buffer_type(9)
go read those too, iykyk π«Ά
lowkey a note to self: the accessible size inbuffer_sizeis measured starting fromaddr_offset, andflagsis bit masks β keep that in mind, bestie, don't come for me π
and that's the whole page, bestie!! ππ¦β¨ this cutie came from ./drivers/media/platform/qcom/... and she's dated October 2026 β a struct so far ahead of her time she's basically time travelling ππ· see u in the next manpage, 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