dma_region_check_iova(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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