STRUCT DMA_HEAP(9)
π 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 β
- Kernel file
./drivers/dma-buf/dma-heap.c dma_heap_get_drvdata(9)dma_heap_get_name(9)dma_heap_add(9)
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
- 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