dma_heap_get_drvdata(9)
π dma_heap_get_drvdata(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're reading kernel docs together, this is our bonding era π«Ά and this particular page is literally about grabbing the private data for a DMA-Heap. it's giving "short but mighty" β¨
πΈ NAME πΈ
dma_heap_get_drvdata β get per-heap driver data. that's it, that's the whole vibe π
you hand it a heap, it hands you back the heap's very own private lil data bundle.
π¦ SYNOPSIS π¦
void * dma_heap_get_drvdata (struct dma_heap *heap );
so like, one argument, one pointer back. no cap, it's that simple π₯ (and yes, the star goes with void, she's a void * return, we stan a pointer-returning icon π)
π ARGUMENTS π
heapβ the DMA-Heap you wanna pull private data for. that's the one. give her the heap, she gives you the data π
β RETURN β
the per-heap data for the heap π literally the heap's own private data, returned to you. main character energy from a one-line function, honestly π
π SEE ALSO π
- kernel file
./drivers/dma-buf/dma-heap.c struct dma_heap(9)dma_heap_get_name(9)dma_heap_add(9)
like, go read those too, they're the friend group π§ this page doesn't exist in a vacuum bestie, iykyk π«
ngl there's nothing scary on this page β no exit statuses, no signals, no "undefined behaviour incoming" energy. just a getter being a getter. slay π
and that's the whole page!! mwah π sourced from ./drivers/dma-buf, dated October 2026 β so she's fresh, she's current, she's literally from the future π¦π 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