dma_heap_get_drvdata(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ’œ

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