STRUCT DMX_BUFFER(9)
π struct dmx_buffer(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual corner where we make kernel structs make sense π this one is literally all about the dmx buffer info and it's kinda iconic.
π NAME π
struct dmx_bufferβ dmx buffer info β¨ like, that's the whole vibe: it's the struct that carries dmx buffer info, no cap.
πΈ SYNOPSIS πΈ
here's the exact shape of it, bestie:
struct dmx_buffer {
__u32 index;
__u32 bytesused;
__u32 offset;
__u32 length;
__u32 flags;
__u32 count;
};
π Members π
indexβ the id number of the buffer π it's the little name tag.bytesusedβ number of bytes occupied by data in the buffer (payload); the actual payload amount, periodt.offsetβ for buffers withmemory == DMX_MEMORY_MMAP; offset from the start of the device memory for this plane, (or a "cookie" that should be passed tommapas offset) πͺ yes, a cookie, we love a mysterious little offset.lengthβ size in bytes of the buffer π that's the size, full stop.flagsβ bit array of buffer flags as defined byenum dmx_buffer_flags. Filled only atDMX_DQBUFπ© so don't expect it to be filled before then.countβ monotonic counter for filled buffers. Helps to identify data stream loses. Filled only atDMX_DQBUFπ’ it's giving "monotonic counter realness" and it's only filled atDMX_DQBUF.
π¦ Description π¦
Contains data exchanged by application and driver using one of the streaming I/O methods π« that's the whole point of this struct, bestie.
π¨ Please notice: forDMX_QBUF, onlyindexshould be filled. OnDMX_DQBUFcalls, all fields will be filled by the Kernel. so like, don't overfill it onDMX_QBUF, okay? the Kernel handles the rest onDMX_DQBUFπ«Ά
π SEE ALSO π
- Kernel file
./include/uapi/linux/dvb/dmx.h enum dmx_output(9)enum dmx_input(9)enum dmx_ts_pes(9)struct dmx_filter(9)struct dmx_sct_filter_params(9)struct dmx_pes_filter_params(9)struct dmx_stc(9)enum dmx_buffer_flags(9)struct dmx_requestbuffers(9)struct dmx_exportbuffer(9)
mwah π this page came from ./include/uapi/linux/dvb, dated October 2026, and it's serving struct dmx_buffer(9) realness π«Άβ¨
π¦ 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