afu_dma_unmap_region(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 your struct dfl_feature_dev_data * πŸ‘‘)
  • iova β€” the dma address of the region, as a u64 πŸ’–

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


ngl the 10 in the page header is not in this man page, bestie β€” but the 9 in 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