module_spi_driver(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

module_spi_driver(9) β€” the Kernel API Manual page, but make it cute

okay so bestie, this is the module_spi_driver(9) page from the Kernel API Manual, and it is literally the low-effort icon for SPI driver modules. no cap. πŸ’…


πŸ’– NAME πŸ’–

module_spi_driver β€” helper macro for registering a SPI driver. that’s the whole vibe. ✨

✨ SYNOPSIS ✨

module_spi_driver (__spi_driver );

🌸 ARGUMENTS 🌸

  • __spi_driver β€” a spi_driver struct. that’s the one and only argument, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This macro is the helper for SPI drivers that do not do anything special in module init/exit. it eliminates a lot of boilerplate β€” the way it eats copy-paste for breakfast, honestly iconic πŸ“βœ¨

Each module may only use this macro once, and calling it replaces module_init and module_exit. not me emphasizing β€œonce” β€” yes, once. periodt. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/spi/spi.h β€” and the whole squad is here:

go read these, iykyk πŸ‘‘πŸŒˆ


source/version: ./include/linux/spi Β· date: October 2026 β€” okay bye, love u, hydrate and check your return values πŸ«ΆπŸ’–
πŸ“¦ where this page comes from