afu_dma_map_region(9)
π afu_dma_map_region(9) β Kernel API Manual π
okay bestie, welcome to the afu_dma_map_region(9) page from the Kernel API Manual. it's giving βmap a memory region for dmaβ and honestly? iconic. π
πΈ NAME πΈ
afu_dma_map_region β map memory region for dma
β¨ SYNOPSIS β¨
int afu_dma_map_region (struct dfl_feature_dev_data *fdata , u64
user_addr , u64 length , u64 *iova );
π ARGUMENTS π
fdataβ feature dev data.user_addrβ address of the memory region.lengthβ size of the memory region.iovaβ pointer of iova address.
π DESCRIPTION π
So this maps the memory region defined by user_addr and length, then returns the dma address of the memory region via iova. no cap, that's the whole deal. β¨
It returns 0 for success β slay β otherwise you get an error code. π
π¦ SEE ALSO π¦
- Kernel file:
./drivers/fpga/dfl-afu-dma-region.c 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_unmap_region(9)
mwah π cute lil sign-off: source/version is ./drivers/fpga, date is October 2026, and the page is afu_dma_map_region(9). bye bestie, go map that region π«Άπ
π¦ 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