afu_dma_region_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… afu_dma_region_destroy(9) β€” like, the Kernel API Manual chapter, bestie ✨

okay so picture this: you're deep in the kernel, you've got a whole rbtree full of DMA regions, and you need them gone. Not one, not two β€” all of them. That's this function. She's the cleanup queen πŸ‘‘ and she does not do partial.


✨ NAME ✨

afu_dma_region_destroy β€” destroy all regions in rbtree πŸ§ΉπŸ’–

Like, every single region. In the rbtree. All of them. No survivors, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

void afu_dma_region_destroy (struct dfl_feature_dev_data *fdata );

yes that's the whole signature, she's short and she knows it πŸ’…


🌸 ARGUMENTS 🌸

  • fdata β€” feature dev data 🫢 that's the struct dfl_feature_dev_data * bestie, the little bundle of feature goodness you're passing in

πŸŽ€ DESCRIPTION πŸŽ€

okay so this is the important part and I need you to listen πŸ™ˆ

Needs to be called with fdata->lock held.

that's it. that's the whole rule. no lock, no vibes. if you call this without holding fdata->lock you are not the main character, you're the cautionary tale 😭 take the lock first, then let her cook πŸ”₯


⭐ SEE ALSO ⭐

the way that's the entire dma-region cinematic universe 🌈 go read them, iykyk


πŸ“ friendly reminder: fdata->lock held. always. fr fr. πŸ’€

okay bye bestie, this page came from ./drivers/fpga, October 2026, and she's literally afu_dma_region_destroy(9) πŸ§šπŸ’œ slay ✨

πŸ“¦ where this page comes from