module_peci_driver(9)
hiii bestie π you're reading the module_peci_driver(9) page from the Kernel API Manual, and honestly? it's a tiny baddie. very helper-macro, very "let me handle the boilerplate for you." π«Ά
πΈ NAME πΈ
module_peci_driver β the helper macro for registering a modular PECI driver. slay. β¨
β¨ SYNOPSIS β¨
the whole vibe is literally:
module_peci_driver (__peci_driver );
π ARGUMENTS π
__peci_driverβ thepeci_driverstruct. that's the one thing this macro wants from you. π
π DESCRIPTION π
okay so picture a PECI driver that does not do anything special in module init/exit. no extra little tasks, no dramatic solo, just vibes. module_peci_driver is the helper macro for exactly that kind of driver, and it exists to eliminate a lot of boilerplate. lowkey iconic. π
the way it works: calling this macro replaces module_init and module_exit, so you don't have to hand-write those bits yourself. but listen β each module may only use this macro once. fr fr, once. don't try to stack it. π¨
π¨ also important: callingmodule_peci_driverreplacesmodule_initandmodule_exit, and each module may only use this macro once. no cap.
π¦ SEE ALSO π¦
go peek at these besties:
- Kernel file
./drivers/peci/internal.h struct peci_device_id(9)struct peci_driver(9)peci_driver_register(9)
mwah π that's the whole page. source/version footer: ./drivers/peci, dated October 2026, with the title energy of module_peci_driver(9). byeeeee π«Άπ
π¦ 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