module_serio_driver(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 β€” the serio_driver struct. 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 replaces module_init and module_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