devm_peci_controller_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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_PTR in 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