afu_mmio_reg...get_by_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 afu_mmio_reg...get_by_index(9) 🌸

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes, that's the manual name, and yes, we're reading it together, hand in hand 🫢. This one's a little function finder, and honestly? she's giving helpful sidekick energy. Let's get into it πŸ’…


✨ NAME ✨

afu_mmio_region_get_by_index β€” find an afu region by index πŸ’«

like, you give her a number and she goes and fetches the matching region. iconic behaviour, no notes.


πŸ¦‹ SYNOPSIS πŸ¦‹

int afu_mmio_region_get_by_index (struct dfl_feature_dev_data *fdata ,
u32 region_index , struct dfl_afu_mmio_region *pregion );

that's the whole vibe right there ⭐ three args in, an int out. look at her go 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • fdata β€” the afu feature dev data πŸ’– this is your feature device data, the main character of the whole show.
  • region_index β€” the region index. that's it. that's the whole description 😭 it's the index of the region, bestie, we all know what an index is ✨
  • pregion β€” ptr to region for result 🌸 a pointer to where the region gets dropped off when she's done. she fills it in, you read it, everyone slays.

πŸ”₯ RETURN πŸ”₯

returns 0 on success, and a negative error code otherwise β€” so like, check it, okay? don't just vibe and assume it worked πŸ’€


🌈 SEE ALSO 🌈


heads up bestie: the SEE ALSO list and that kernel file path are literal β€” copy them exactly if you're citing them, okay? no autocorrect shenanigans πŸ’…

and that's the page!! πŸ“ lowkey a short one but she ate fr fr. came to you from ./drivers/fpga, dated October 2026 β€” mwah, love that for us πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from