peci_driver_register(9)
π peci_driver_register(9) β like, the Kernel API Manual, bestie β¨
okay so this is peci_driver_register, straight out of the Kernel API Manual, and it's genuinely one of the shorter ones so we can absolutely get through this together π«Ά
π NAME π
peci_driver_register β the function that registers a PECI driver. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
peci_driver_register (driver );
(no cap, the spacing in there is exactly how it's written, don't come for me π)
πΈ ARGUMENTS πΈ
driverβ the driver you're registering. yes, the one right there. that's the whole argument. she's simple, she's iconic π
π¦ DESCRIPTION π¦
so here's the tea β β if your PECI driver doesn't need to do anything special in module init, you should not be hand-rolling this call. instead, use the convenience macro module_peci_driver, which handles it for you. it's giving "let the macro cook" π₯
lowkey the whole point: use module_peci_driver unless you genuinely have something extra to do at init time. iykyk π§
β RETURN β
- zero on success π
- otherwise, a negative error code π
that's the entire return contract, fr fr.
π SEE ALSO π
- Kernel file
./drivers/peci/internal.h - struct
peci_device_id(9) - struct
peci_driver(9) module_peci_driver(9)
go read those next, bestie, they're literally right there π
okay and like, source/version note for the record: this page lives under ./drivers/peci and it's dated October 2026 β so yeah, future-dated manual page, main character energy only π
β¨ slay, go register that driver, 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