STRUCT DFL_DEVICE(9)
π struct dfl_device(9) π
okay bestie, welcome to the Kernel API Manual entry for struct dfl_device β yes we're in section 9, yes it's a struct, and yes it's literally the whole personality of an dfl device on the dfl bus. slay.
β¨ NAME β¨
struct dfl_device β the struct that represents a dfl device on the dfl bus π¦
πΈ SYNOPSIS πΈ
struct dfl_device {
struct device dev;
int id;
u16 type;
u16 feature_id;
u8 revision;
struct resource mmio_res;
int *irqs;
unsigned int num_irqs;
struct dfl_fpga_cdev *cdev;
const struct dfl_device_id *id_entry;
u8 dfh_version;
unsigned int param_size;
void *params;
};
no cap, that's the whole glow-up. every field copied exactly, character for character, because we do not edit source code in this house π
π Members π
devβ the generic device interface. like, the main character energy slot every device struct needs π«Άidβ the id of the dfl device. it's anint, it's iconic, it's how you know who's who.typeβ type of DFL FIU of the device. checkenum dfl_id_typefor the vibes (iykyk).feature_idβ feature identifier local to its DFL FIU type. so like, it only makes sense next to its owntypeβ a little duo, honestly πrevisionβ revision of this dfl device feature. au8, very demure, very mindful.mmio_resβ mmio resource of this dfl device. it's astruct resource, aka the memory-mapped moment.irqsβ list of Linux IRQ numbers of this dfl device. a wholeint *of interrupts, obsessed πnum_irqsβ number of IRQs supported by this dfl device. the count, the total, theunsigned intof it all.cdevβ pointer to the DFL FPGA container device this dfl device belongs to. it's giving family tree πid_entryβ matched id entry in dfl driver's id table. theconst struct dfl_device_id *that said "it's you" πdfh_versionβ version of DFH for the device. au8keeping track of which DFH era we're in.param_sizeβ size of the block parameters in bytes.unsigned int, extremely precise, we love a unit.paramsβ pointer to block of parameters copied memory. avoid *, so it's mysterious and flexible, lowkey main character π§
fr fr bestie, don't invent extra fields β the struct in the synopsis is the whole entire struct, no bonus content π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/dfl.h enum dfl_id_type(9)struct dfl_driver(9)
and that's the tea π this page lives in ./include/linux, version October 2026 vibes, and it's filed as struct dfl_device(9) β periodt, go read the header file now, mwah πβ¨π
π¦ 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