STRUCT DMA_HEAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

so like, struct dma_heap β€” bestie, it literally represents a dmabuf heap in the system. that's it, that's the vibe. πŸ‘‘

(this is from the Kernel API Manual, page struct dma_heap(9), iykyk ✨)


🌸 SYNOPSIS 🌸

okay so here's the whole struct, no cap, copy it exactly:

struct dma_heap {
    const char *name;
    const struct dma_heap_ops *ops;
    void *priv;
    dev_t heap_devt;
    struct list_head list;
    struct cdev heap_cdev;
 };

πŸŽ€ Members πŸŽ€

every field is a main character here, let's do a vibe check on all of them 🫢

  • name β€” used for debugging/device-node name. literally the heap's little nametag πŸ’…
  • ops β€” the ops struct for this heap. it's giving "here's all my functions" energy ✨
  • priv β€” private data for this heap. secrets, we keep them πŸ™ˆ
  • heap_devt β€” heap device node. the dev_t girlie πŸ’œ
  • list β€” list head connecting to list of heaps. she's in the group chat with all the other heaps, fr fr πŸ¦‹
  • heap_cdev β€” heap char device. iconic πŸŽ€

πŸ¦‹ Description πŸ¦‹

so basically: this struct represents a heap of memory from which buffers can be made. that's the whole plot πŸ’– slay.


⭐ SEE ALSO ⭐

go read them, bestie, they're lowkey obsessed with this struct πŸ”₯


and that's the page!! 🫢 this cutie lives in ./drivers/dma-buf, dated October 2026, and it's filed under struct dma_heap(9) β€” periodt, no notes, ate and left no crumbs πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from