module_spi_driver(9)
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β aspi_driverstruct. 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:
struct spi_statistics(9)struct spi_delay(9)struct spi_device(9)struct spi_driver(9)spi_unregister_driver(9)struct spi_controller(9)struct spi_res(9)struct spi_transfer(9)struct spi_message(9)spi_message_init_with_transfers(9)spi_is_bpw_supported(9)spi_bpw_to_bytes(9)spi_controller_xfer_timeout(9)struct spi_replaced_transfers(9)spi_sync_transfer(9)spi_write(9)spi_read(9)spi_w8r8(9)spi_w8r16(9)spi_w8r16be(9)struct spi_board_info(9)
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
- 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