devm_peci_controller_add(9)
π devm_peci_controller_add(9) π
ok so bestie, welcome to the Kernel API Manual β¨ we're talking about devm_peci_controller_add today and honestly? it's a whole vibe. it's the function that officially announces your PECI controller to the world. main character energy fr fr π
β¨ NAME β¨
devm_peci_controller_add β add PECI controller π¦
like, that's it. that's the whole job. adding a PECI controller. iconic behavior, no notes π
πΈ SYNOPSIS πΈ
struct peci_controller * devm_peci_controller_add (struct device *dev ,
const struct peci_controller_ops *ops );
look at her. she takes two things and she gives you back a controller. we love a queen who knows what she wants π
π«Ά ARGUMENTS π«Ά
devβ the device, bestie π this is the one used for all the devm operations (iykyk β devm = managed, so the lifecycle stuff handles itself, we literally love that for us).opsβ a pointer to the controller specific methods π§ this is where the controller's own personality lives.
π₯ DESCRIPTION π₯
okay so picture this: your peci_controller driver is in the final stage of its probe, right? like, the last little moment before it steps out fully dressed π
and that's exactly when it calls devm_peci_controller_add β to register itself with the PECI bus. that's the whole thing. that's the slay. it's giving debutante ball, it's giving "everybody look at my controller" πβ
no cap, that's genuinely the entire description. short and iconic. periodt. πβ¨
π RETURN π
- a pointer to the newly allocated controller π (yay!! the good ending)
- or an
ERR_PTRin case of failure π (the bad ending β always check, bestie, please check, do not skip the check, I am begging π)
π SEE ALSO π
- Kernel file
./drivers/peci/core.cβ go read it, it's where the magic actually happens π₯π
tiny reminder from your girl: the return value can be an ERR_PTR, so vibe-check it before you dereference it, okay? protect yourself π
and that's the page!! πΈ this one came out of ./drivers/peci in October 2026, from the Kernel API Manual β love her, read her, cite her π«Άβ¨ mwah, bye bestie! ππ¦π
π¦ 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