afu_mmio_reg...get_by_index(9)
πΈ 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 π
- kernel file
./drivers/fpga/dfl-afu-region.cβ that's where she lives π afu_mmio_region_init(9)afu_mmio_region_add(9)afu_mmio_region_destroy(9)afu_mmio_region_get_by_offset(9)β her sibling, gets regions by offset instead of index, iykyk π§
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
- 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