mfd_add_devices(9)
β¨ mfd_add_devices(9) β¨
okay so bestie, welcome to the mfd_add_devices(9) glow-up π
this is a page from the Kernel API Manual, and it's literally the moment where you register a whole squad of child devices. it's giving "mom friend introducing her whole group chat to the party" energy, and honestly? iconic.
πΈ NAME πΈ
mfd_add_devices β register child devices π
π¦ SYNOPSIS π¦
int mfd_add_devices (struct device *parent , int id , const struct
mfd_cell *cells , int n_devs , struct resource *mem_base , int irq_base
, struct irq_domain *domain );
π ARGUMENTS π
parentβ pointer to the parent device. yeah, the main character whose children we're about to introduce π«Άidβ can bePLATFORM_DEVID_AUTOto let the Platform API take care of device numbering, or it gets added to a device'scell_id. so like, either the platform handles the numbering for you or you're tacking this number onto the cell id β your call, no cap β¨cellsβ an array of(struct mfd_cell)s describing the child devices. this is the little roster of who's who in the group πn_devsβ number of child devices to register. count 'em, bestie π₯mem_baseβ parent register range resource for child devices.irq_baseβ base of the range of virtual interrupt numbers allocated for this MFD device. unused ifdomainis specified. like, it's literally sitting there doing nothing if you brought adomainalong πdomainβ interrupt domain to create mappings for hardware interrupts. this is the one that handles the interrupt map-making π§
π SEE ALSO π
- Kernel file
./drivers/mfd/mfd-core.c devm_mfd_add_devices(9)
lowkey reminder bestie: if you pass adomain, thatirq_baseargument is just vibing unused. don't come for her, she's fine, she's just not needed π
and that's the whole page, bestie β go register those children and slay πβ this lil sign-off comes to you from ./drivers/mfd, dated October 2026, in mfd_add_devices(9). 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