STRUCT DFL_FEATURE_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct dfl_feature_info β€” a kernel API manual moment, bestie πŸ’–

okay so this is a page from the Kernel API Manual (the (9) girlies know), and it's all about struct dfl_feature_info β€” the little cutie that holds sub feature info collected during feature dev build. yes that's the NAME section, we're starting strong ✨


🫢 SYNOPSIS 🫢

like, here's the whole struct, literally character for character, no notes:

struct dfl_feature_info {
    u16 fid;
    u8 revision;
    u8 dfh_version;
    struct resource mmio_res;
    void __iomem *ioaddr;
    struct list_head node;
    unsigned int irq_base;
    unsigned int nr_irqs;
    unsigned int param_size;
    u64 params[];
 };

it's giving "small but booked and busy" πŸ’…


🌸 Members 🌸

every single field, and what it's about β€” no skipping, we're thorough in this house:

  • fid β€” id of this sub feature. it's the sub feature's whole identity fr fr πŸͺͺ
  • revision β€” revision of this sub feature. the glow-up version number ✨
  • dfh_version β€” version of Device Feature Header (DFH). yes, the header has its own version, main character energy πŸ‘‘
  • mmio_res β€” mmio resource of this sub feature. the actual memory-mapped turf πŸ—ΊοΈ
  • ioaddr β€” mapped base address of mmio resource. where the MMIO actually lives once it's mapped 🏠
  • node β€” node in sub_features linked list. our girl is linked-list-ified, the way that she's on a list 😭
  • irq_base β€” start of irq index in this sub feature. where the interrupt numbering begins πŸ”’
  • nr_irqs β€” number of irqs of this sub feature. how many interrupts she brought to the party πŸŽ‰
  • param_size β€” size DFH parameters. (yes, that's exactly how the original words it β€” keep it πŸ’–)
  • params β€” DFH parameter data. the flexible array member at the end doing the absolute most 🧚
ngl the params[] at the bottom with no size is iconic β€” it's a flexible array member, so the data just follows the struct. lowkey obsessed πŸ“

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, and we're not leaving anyone out:

like… that's the roster. 27 entries. we listed every single one because we don't do half-finished over here πŸ’―


and that's the page!! mwah πŸ’‹ this manual came from ./drivers/fpga and it's dated October 2026, so yeah, she's from the future and she's still serving struct realness. slay, stay hydrated, and go read your kernel source 🫢🌈⭐

πŸ“¦ where this page comes from