STRUCT DMA_BUF_EXPORT_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct dma_buf_export_info(9) πŸ’…

ok so bestie, this is the Kernel API Manual page for struct dma_buf_export_info β€” yes the whole page is literally about one struct, and honestly? she deserves it. πŸŽ€


✨ NAME ✨

struct dma_buf_export_info β€” the little info-holder that holds everything you need to export a dma_buf. it's giving "gift-wrapped buffer," iykyk 🎁


πŸ¦‹ SYNOPSIS πŸ¦‹

struct dma_buf_export_info {
    const char *exp_name;
    struct module *owner;
    const struct dma_buf_ops *ops;
    size_t size;
    int flags;
    struct dma_resv *resv;
    void *priv;
 };

like, that's the whole glow-up. seven fields. each one pulling its weight. πŸ’œ


🌸 Members 🌸

  • exp_name β€” the exporter's name, bestie. lowkey just for debugging, but it's the name tag at the party so nobody forgets who brought the buffer. 🏷️
  • owner β€” pointer to the exporter module. this is the refcounting situation for the kernel module β€” main character energy for lifetime management, no cap.
  • ops β€” you attach the allocator-defined dma buf ops to the new buffer here. the allocator picked these out, you're just delivering them. ✨
  • size β€” size of the buffer. and hear me when I say this: it is invariant over the lifetime of the buffer. it does not change. it will not change. periodt. πŸ“
  • flags β€” mode flags for the file. the vibe settings, essentially. 🚩
  • resv β€” the reservation-object. if you pass NULL, a default one gets allocated for you. so generous honestly 🫢
  • priv β€” attach the allocator's private data to this buffer. it's their personal stash, you just hold the pointer. πŸ™ˆ

πŸ‘‘ Description πŸ‘‘

fr fr, this structure holds all the information required to export the buffer. that's the whole job. she's used with dma_buf_export only β€” not with anything else, so don't try to make her something she's not. πŸ’…


🌈 SEE ALSO 🌈

like a whole friend group in one header file, obsessed πŸ’–


and that's the page bestie!! source lives over in ./include/linux, dated October 2026 β€” so she's from the future, iconic behavior, mwah πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from