module_auxiliary_driver(9)
π module_auxiliary_driver β the Kernel API Manual era π
okay so bestie, welcome to the manual page for module_auxiliary_driver, straight out of the Kernel API Manual β¨ lowkey iconic, highkey useful. Let's get into it π«Ά
β¨ NAME β¨
module_auxiliary_driver β the helper macro that handles registering an auxiliary driver for you π
πΈ SYNOPSIS πΈ
module_auxiliary_driver (__auxiliary_driver );
no cap, that's the whole thing. that's the vibe π
π¦ ARGUMENTS π¦
__auxiliary_driverβ the auxiliary driver struct π« literally just hand it your driver struct and you're done, slay.
π DESCRIPTION π
okay so here's the tea β β this is the helper macro for auxiliary drivers that do not do anything special in module init/exit. none of that extra credit homework energy, just vibes β¨
the way it eliminates a lot of boilerplate?? honestly obsessed π you don't have to hand-write all that setup noise, the macro ate and left no crumbs π
π¨ the rules, bestie, listen up π¨ each module may only use this macro once. that's it. one time. and calling it replacesmodule_initandmodule_exitβ so don't go doubling up, iykyk π
and here's how it looks in the wild:
module_auxiliary_driver(my_drv);
main character macro energy, fr fr π
π SEE ALSO π
- Kernel file
./include/linux/auxiliary_bus.hπ DEVICE_LIFESPAN(9)π°οΈstruct auxiliary_device(9)π§struct auxiliary_driver(9)π
go read those next, they're giving required reading π
and that's the page!! π¦ brought to you by ./include/linux, dated October 2026, and yes it's module_auxiliary_driver(9) β mwah, periodt ππΈ
π¦ 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