module_serio_driver(9)
π NAME π
Hiii bestie! π This is module_serio_driver(9) from the Kernel API Manual, and it's literally the helper macro for registering a serio driver. No cap. It's the βplease donβt make me write the same module boilerplate againβ icon we deserve. β¨
πΈ SYNOPSIS πΈ
module_serio_driver (__serio_driver );
π¦ ARGUMENTS π¦
__serio_driverβ theserio_driverstruct. That's the driver struct you're passing in, bestie. π«Ά
π DESCRIPTION π
Okay so listen: this is a helper macro for serio drivers that do not do anything special in module init/exit. It eliminates a lot of boilerplate, which is honestly such a slay. π
Bestie, important: each module may only use this macro once, and calling it replacesmodule_initandmodule_exit. So don't double-dip. π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/serio.hβ go read it, iykyk. π
Cute little sign-off with the source/version and date: ./include/linux Β· October 2026 Β· module_serio_driver(9) ππ¦
π¦ 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