STRUCT DMX_EXPORTBUFFER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 only O_CLOEXEC is supported, no cap β€” peep the manual of the open syscall 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