STRUCT BUILD_FEATURE_DEVS_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct build_feature_devs_info β€” Kernel API Manual (section 9, bestie!)

okay so this is the struct build_feature_devs_info page from the kernel API manual, section 9 β€” the info collected during a feature dev build. it's literally just a lil' struct that holds all the deets while the kernel is out here enumerating feature devices, and honestly it's giving "main character of the enumeration arc" energy 🌈


✨ NAME ✨

struct build_feature_devs_info β€” info collected during feature dev build. that's it, that's the whole job, and it ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct build_feature_devs_info {
    struct device *dev;
    struct dfl_fpga_cdev *cdev;
    unsigned int nr_irqs;
    int *irq_table;
    enum dfl_id_type type;
    void __iomem *ioaddr;
    resource_size_t start;
    resource_size_t len;
    struct list_head sub_features;
    int feature_num;
 };

like, copy it exactly bestie, don't retype it from memory 😭


πŸŽ€ Members πŸŽ€

each field is a little icon, periodt:

  • dev β€” the device to enumerate. this is the one we're out here getting to know ✨
  • cdev β€” the container device for all feature devices. the mothership, if you will πŸ‘‘
  • nr_irqs β€” number of irqs for all feature devices. count 'em πŸ”₯
  • irq_table β€” Linux IRQ numbers for all irqs, indexed by local irq index of this device. so it's the lookup table, and yes the indexing matters, no cap 🫢
  • type β€” the current FIU type. which flavor of FIU are we in, iykyk πŸ“
  • ioaddr β€” header register region address of current FIU in enumeration. address girlies rise 🌸
  • start β€” register resource start of current FIU. where the resource begins, lowkey important πŸ’œ
  • len β€” max register resource length of current FIU. the maximum, not just any length, okay 🌟
  • sub_features β€” a sub features linked list for feature device in enumeration. a whole linked list of sub features, we love a data structure 🧚
  • feature_num β€” number of sub features for feature device in enumeration. the count that goes with the list, they're a matching set πŸ’–
ngl bestie, the whole struct is basically "who am I, where's my container, how many irqs, here's the table, what type, here's the address, start, len, the sub feature list, and how many of those there are." memorize it and slay πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./drivers/fpga/dfl.c and its whole friend group β€” literally the entire group chat, no one left out:


and that's the page bestie 🫢 sign-off time: this one comes from ./drivers/fpga, dated October 2026, and the page itself is struct build...re_devs_info(9) β€” yes the header is literally abbreviated like that, don't @ me, that's just how it was printed πŸ˜­βœ¨πŸ’…

πŸ“¦ where this page comes from