afu_dma_region_find(9)
πΈ NAME πΈ
okay bestie, welcome to afu_dma_region_find(9) β yes, that's the title, and this page lives in the Kernel API Manual β¨
afu_dma_region_find β find the dma region from rbtree based on iova and size π
π¦ SYNOPSIS π¦
struct dfl_afu_dma_region * afu_dma_region_find (struct dfl_feature_dev_data *fdata , u64 iova , u64 size );
π ARGUMENTS π
fdataβ feature dev data π«Άiovaβ address of the dma memory area πsizeβ size of the dma memory area π
β¨ DESCRIPTION β¨
okay so bestie, it finds the dma region from the rbtree based on iova and size β like a little kernel treasure hunt, but make it DMA π
- if
size == 0, it finds the dma region which starts fromiovaπΈ - otherwise, it finds the dma region which fully contains
[iova, iova+size)π₯
If nothing is matched returns NULL β like, no match, no vibes π
β οΈ Needs to be called with fdata->lock held. no cap, hold that lock before you call this π
π 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_iova(9)afu_dma_map_region(9)afu_dma_unmap_region(9)
mwah π this cutie page's source/version is ./drivers/fpga, dated October 2026 β 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