afu_dma_region_destroy(9)
π 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 thestruct 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 β
- Kernel file
./drivers/fpga/dfl-afu-dma-region.cβ the whole friend group lives here π afu_dma_pin_pages(9)afu_dma_unpin_pages(9)afu_dma_check_continuous_pages(9)dma_region_check_iova(9)afu_dma_region_add(9)afu_dma_region_remove(9)afu_dma_region_find(9)afu_dma_region_find_iova(9)afu_dma_map_region(9)afu_dma_unmap_region(9)
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
- 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