afu_dma_region_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 from iova 🌸
  • 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 πŸ’œ


mwah πŸ’‹ this cutie page's source/version is ./drivers/fpga, dated October 2026 β€” periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from