STRUCT DFL_AFU_MMIO_REGION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct dfl_afu_mmio_region(9) β€” the kernel API manual, bestie edition ✨

okay so picture this: you're deep in the kernel API manual, section 9, and you've stumbled onto struct dfl_afu_mmio_region β€” literally the data structure that holds all the tea about an AFU's mmio region πŸŽ€. Yeah. That one. Let's get into it.


🌸 NAME 🌸

struct dfl_afu_mmio_region β€” the afu mmio region data structure. that's her. that's the whole vibe. πŸ‘‘


✨ SYNOPSIS ✨

here's the glow-up in code form, copied exactly because we do not edit source in this house 🫢:

struct dfl_afu_mmio_region {
    u32 index;
    u32 flags;
    u64 size;
    u64 offset;
    u64 phys;
    struct list_head node;
};

look at that struct. main character energy, honestly. 🌈


πŸ’– Members πŸ’–

every single field, no skips, no cuts β€” the way that a struct deserves a full breakdown fr fr:

  • index β€” the region index. it's giving "which one am I" πŸ¦‹.
  • flags β€” the region flags, aka the access permission situation. this is where she tells you what she's allowed to do πŸ’….
  • size β€” the region size. how much space she's taking up, and honestly same 😭.
  • offset β€” the region offset from the start of the device fd. important detail, don't lose it, iykyk.
  • phys β€” the region's physical address. her actual real-world location, no cap πŸ“.
  • node β€” the node you use to add her to the afu feature dev's region list. she's a linked-list girlie now πŸ”—.

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, bestie, they're literally in the kernel file ./drivers/fpga/dfl-afu.h:

  • struct dfl_afu_dma_region(9)
  • struct dfl_afu(9)

lowkey a reminder: this is a data structure page, so the whole plot is the members list. don't skip offset being measured from the start of the device fd β€” that's the detail that'll get you at 2am πŸ•‘πŸ’€.

and that's the page!! mwah πŸ’‹ sign-off time: this slay of a manpage lives in ./drivers/fpga, dated October 2026, and it's filed under struct dfl_afu_mmio_region(9) β€” periodt. go forth and mmio responsibly πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from