afu_dma_region_find_iova(9)
π afu_dma_region_find_iova(9) β like, the whole entire vibe π
okay so bestie, welcome to the Kernel API Manual β¨ pull up a chair, grab a boba, because we're about to talk about finding a DMA region in an rbtree and honestly? it's giving main character energy π
πΈ NAME πΈ
afu_dma_region_find_iova β ok so what it DOES is it finds the dma region from rbtree by iova π¦ that's literally it, that's the whole job, and it does it slayfully
β¨ SYNOPSIS β¨
struct dfl_afu_dma_region * afu_dma_region_find_iova (struct
dfl_feature_dev_data *fdata , u64 iova );
like, you hand it your feature dev data and an iova, and it hands you back a struct dfl_afu_dma_region * π«Ά no cap
π ARGUMENTS π
fdataβ the feature dev data π that's your context, your whole situationiovaβ the address of the dma region πΈ (au64, in case you were wondering, and yes it's in the synopsis too, i'm just being thorough)
π₯ DESCRIPTION π₯
okay so here's the thing that actually matters, and i need you to hear me on this one:
Needs to be called with fdata->lock held. π
like. held. as in you already grabbed the lock before you call this, bestie π this function is NOT gonna do it for you, it's not that kind of function, it's a you do the locking kind of function. so lock it up first, then call, okay? periodt π
π SEE ALSO π
the kernel file is ./drivers/fpga/dfl-afu-dma-region.c β go read it, it's iconic π
and then the whole friend group of related functions, all of which you can and should look up:
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_map_region(9)afu_dma_unmap_region(9)
and that's the page, bestie π shoutout to ./drivers/fpga for being the source and the whole October 2026 situation for the date β like she's from the future, we respect it π§ββοΈβ bye!! π
π¦ 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