afu_mmio_region_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– afu_mmio_region_add(9) πŸ’–

okay bestie, so this one lives in the Kernel API Manual and it is literally the function that adds an mmio region to a given feature dev. that's the whole vibe. let's get into it πŸŽ€


✨ NAME ✨

afu_mmio_region_add β€” add a mmio region to given feature dev. πŸ’…


🌸 SYNOPSIS 🌸

int afu_mmio_region_add (struct dfl_feature_dev_data *fdata , u32
region_index , u64 region_size , u64 phys , u32 flags );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • fdata β€” the afu feature dev data. like, the whole feature dev's data situation 🫢
  • region_index β€” the region index. which region are we talking about, bestie ✨
  • region_size β€” the region size. how big is it fr fr
  • phys β€” the region's physical address of this region. yes, physical physical πŸ”₯
  • flags β€” the region flags (access permission). aka who's allowed to do what πŸ™ˆ

⭐ RETURN ⭐

0 on success, negative error code otherwise. no cap β€” zero means slay, negative means something went sideways 😭


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/fpga/dfl-afu-region.c, plus the whole friend group:

go read those too, iykyk πŸ’œ


and that's the page, bestie!! this iconic lil entry comes to you from the source ./drivers/fpga and it's dated October 2026 β€” see u in the next manpage, mwah πŸ’‹

πŸ“¦ where this page comes from