module_slim_driver(9)
π module_slim_driver(9) π
okay so this is a page from the Kernel API Manual bestie, and it's about one tiny little macro that saves you SO much typing. slay.
β¨ NAME β¨
module_slim_driver β the helper macro that registers a SLIMbus driver for you π«Ά
πΈ SYNOPSIS πΈ
module_slim_driver (__slim_driver );
like yes that's the whole thing, she's compact π
π ARGUMENTS π
__slim_driverβ theslimbus_driverstruct you're handing over β¨ literally just your driver struct, that's it
π¦ DESCRIPTION π¦
mkay so picture this: you've got a SLIMbus driver and it does nothing special in module init/exit. no fancy setup, no dramatic exit routine, nothing. and you're sitting there writing boilerplate like a clown π not anymore bestie.
This helper macro is for exactly those SLIMbus drivers that don't do anything special in module init/exit β and it eliminates a lot of boilerplate β¨ it's giving "let the macro handle it, you go live your life" π
π¨ the vibes check: each module may only use this macro once. one (1) time. and calling it replacesmodule_initandmodule_exitβ so don't go doubling up, iykyk π
π SEE ALSO π
- the kernel file
./include/linux/slimbus.hπ struct slim_eaddr(9)enum slim_device_status(9)struct slim_device(9)struct slim_driver(9)struct slim_val_inf(9)struct slim_stream_config(9)
go read those, fr fr π
mwah π that's the page! it lives over in ./include/linux, dated October 2026, and it's got the Kernel API Manual energy all over it. 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