module_slim_driver(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the slimbus_driver struct 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 replaces module_init and module_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