dma_heap_add(9)
π dma_heap_add(9) β like, the kernel API manual, but make it make sense π
Hey bestie, so this is dma_heap_add(9) from the Kernel API Manual (section 9, iykyk), and honestly? It's giving "one job, does it well." β¨
πΈ NAME πΈ
dma_heap_add β adds a heap to dmabuf heaps
No cap, that's the whole thing. It adds a heap. To the dmabuf heaps. Slay. π
β¨ SYNOPSIS β¨
struct dma_heap * dma_heap_add (const struct dma_heap_export_info
*exp_info );
So the way this works is: you hand it one pointer, you get back a struct dma_heap *. That's it. That's the vibe. π¦
π«Ά ARGUMENTS π«Ά
exp_infoβ the info the kernel needs to register this heap. Literally the whole "who am I, what am I, please put me in the heap list" package. Everything it needs to know about your heap lives in here, bestie. π
π SEE ALSO π
- The kernel file
./drivers/dma-buf/dma-heap.cβ go read it, it's literally where the magic happens, no cap π₯ struct dma_heap(9)β the thing you get back, iconic struct energydma_heap_get_drvdata(9)β grab that driver datadma_heap_get_name(9)β grab that name
ngl, this one is short and sweet β but every flag, every pointer, every path is in here fr fr. Don't @ me. π
And that's a wrap, bestie! π This lil' page came from the source/version <bold>./drivers/dma-buf</bold> and it's dated <italic>October 2026</italic> β so go forth and register your heaps, you absolute main character. Periodt. πππ
π¦ 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