cppc_set_perf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cppc_set_perf β€” the Kernel API Manual girlies are HERE πŸŽ€

okay so bestie, welcome to cppc_set_perf(9) β€” this is the kernel API manual page, and yes we're reading a manpage together, it's giving study date energy πŸ“šβœ¨


🌸 NAME 🌸

cppc_set_perf β€” set a CPU's performance controls. that's it, that's the whole vibe. you're literally telling a CPU how hard to work. main character energy fr fr πŸ‘‘


✨ SYNOPSIS ✨

int cppc_set_perf (int cpu , struct cppc_perf_ctrls *perf_ctrls );

look at her. one function, two arguments, zero drama (mostly). πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cpu β€” the CPU you're setting performance controls for. like, which little guy are we tuning today 🎯
  • perf_ctrls β€” a pointer to cppc_perf_ctrls. and where do you find that struct's lore? cppc_acpi.h, no cap. go look, i'll wait πŸ’…

πŸ”₯ RETURN πŸ”₯

  • 0 β€” success!! slay, it worked, we ate πŸ“
  • -ERRNO β€” otherwise. so, not zero, meaning something went sideways and you get a negative errno back. it's giving "we don't talk about it" 😭
ngl if you're getting the -ERRNO branch, don't just ignore it β€” that's your signal that the call did not succeed. periodt.

🌈 SEE ALSO 🌈

bestie there are SO many siblings, i'm obsessed. whole cppc family reunion 🫢

Kernel file ./drivers/acpi/cppc_acpi.c, plus:


that's the page, bestie. go set some performance controls responsibly πŸ’œ

sign-off time 🧚: this little gem lives in ./drivers/acpi, dated October 2026 β€” and that's the version/source tea, mwah πŸ’‹

πŸ“¦ where this page comes from