STRUCT DMX_EXPORTBUFFER(9)
π struct dmx_exportbuffer(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for struct dmx_exportbuffer, and it's literally the whole "export a dmx buffer as a DMABUF file descriptor" situation. iykyk π«Ά
πΈ NAME πΈ
struct dmx_exportbuffer β exporting a dmx buffer as a DMABUF file descriptor. that's the vibe. that's the whole job. periodt π
β¨ SYNOPSIS β¨
struct dmx_exportbuffer {
__u32 index;
__u32 flags;
__s32 fd;
};
π Members π
indexβ the id number of the buffer. like its little name tag π·οΈflagsβ flags for the newly created file. rn onlyO_CLOEXECis supported, no cap β peep the manual of theopensyscall for more deets πfdβ the file descriptor associated with the DMABUF. and bestie, this one is set by the driver, not you. hands off π«Ά
π¦ Description π¦
so this struct literally just contains the data used for exporting a dmx buffer as a DMABUF file descriptor. iconic behavior honestly π
the buffer is identified by a 'cookie' that's returned by DMX_QUERYBUF β and yes, it's identical to the cookie you use to mmap the buffer to userspace. same cookie, different day πͺβ¨
β οΈ okay this part matters, don't skip it: all reserved fields must be set to zero. fr fr.
and the tea on reserved0 π« β it's expected to become a structure type later, which would allow an alternative layout of the struct content. so do NOT use this field for any other extensions, okay? it's reserved for its future main character era π
π₯ SEE ALSO π₯
Kernel file ./include/uapi/linux/dvb/dmx.h and friends:
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_buffer(9)struct dmx_requestbuffers(9)
aaaand that's the page bestie π sourced fresh from ./include/uapi/linux/dvb, dated October 2026, and honestly? she ate. go export those buffers. slay πππ§
π¦ 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