dma_region_check_iova(9)
π dma_region_check_iova(9) β the vibe check for your DMA region π
okay so bestie, welcome to the Kernel API Manual, section 9. today's main character is dma_region_check_iova, and she is literally just here to answer one question: is this memory area fully inside the region or not? that's it. that's the whole job. and honestly? she ate. π
β¨ SYNOPSIS β¨
bool dma_region_check_iova (struct dfl_afu_dma_region *region , u64 iova
, u64 size );
like, she takes three things and gives you back a bool. no drama, no side effects, no cap. π¦
π«Ά ARGUMENTS π«Ά
regionβ the dma memory region. this is the icon we're checking everything against. πiovaβ the address of the dma memory area. the "where" of it all. β¨sizeβ the size of the dma memory area. the "how much" of it all. π
πΈ DESCRIPTION πΈ
so here's the tea: dma_region_check_iova compares the dma memory area defined by iova and size against the given dma region.
if the memory area is fully contained in the region β she returns true. slay. β
otherwise β false. and that's it, no hard feelings. π
the way she's literally just doing containment math and nothing else... obsessed. π§
ngl the word to hold onto here is fully β she's checking the whole area is inside, not just vibes-adjacent to it. π₯
π SEE ALSO π
Kernel file ./drivers/fpga/dfl-afu-dma-region.c, plus her whole friend group:
afu_dma_pin_pages(9)afu_dma_unpin_pages(9)afu_dma_check_continuous_pages(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)afu_dma_unmap_region(9)
go read them, iykyk. ππ
warning bestie: don't just guess at containment with your own arithmetic, use the function fr fr. π
that's the whole page!! mwah π
β this little number lives in ./drivers/fpga, dated October 2026, and yes she's dma_region_check_iova(9) β 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