afu_dma_unmap_region(9)
β¨ afu_dma_unmap_region(9) β¨
okay so bestie, this is a page from the Kernel API Manual and honestly? it's giving "small function, big job" energy π like it's not the flashiest syscall-adjacent thing in the world but it does clean up after everyone, which is main character behavior fr fr.
πΈ NAME πΈ
afu_dma_unmap_region β unmap a dma memory region πΊοΈπ
π SYNOPSIS π
int afu_dma_unmap_region (struct dfl_feature_dev_data *fdata , u64 iova );
β¨ that's the whole signature bestie, no cap β¨
π¦ ARGUMENTS π¦
fdataβ the feature dev data (yes queen, that's yourstruct dfl_feature_dev_data *π)iovaβ the dma address of the region, as au64π
π DESCRIPTION π
So what does it do?? It unmaps the dma memory region based on iova π«Ά like, you hand it the dma address and it goes "say less" and tears the mapping down.
Return value tea β: it returns 0 for success, otherwise it gives you an error code π so always check it, bestie, don't just assume it slayed.
π SEE ALSO π
the kernel file lives at ./drivers/fpga/dfl-afu-dma-region.c β go visit her π
and also go say hi to the whole friend group:
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_destroy(9)afu_dma_region_find(9)afu_dma_region_find_iova(9)afu_dma_map_region(9)
ngl the10in the page header is not in this man page, bestie β but the9in all these references totally is, so don't come for me π
okay that's a wrap!! π this iconic little page comes to you from ./drivers/fpga, dated October 2026, and it's page afu_dma_unmap_region(9) of the Kernel API Manual. mwah π stay hydrated, check your return values, and unmap your regions, 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