cppc_set_perf(9)
π
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 tocppc_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:
acpi_get_psd_map(9)cpc_ffh_supported(9)cpc_supported_by_cpu(9)pcc_data_alloc(9)acpi_cppc_processor_probe(9)acpi_cppc_processor_exit(9)cpc_read_ffh(9)cpc_read_ffh_fb_ctrs(9)cpc_write_ffh(9)cppc_get_desired_perf(9)cppc_get_nominal_perf(9)cppc_get_highest_perf(9)cppc_get_epp_perf(9)cppc_get_perf_caps(9)cppc_perf_ctrs_in_pcc_cpu(9)cppc_perf_ctrs_in_pcc(9)cppc_get_perf_ctrs(9)cppc_set_epp(9)cppc_get_auto_act_window(9)cppc_set_auto_act_window(9)cppc_get_auto_sel(9)cppc_set_auto_sel(9)cppc_set_enable(9)cppc_get_perf(9)cppc_get_perf_limited(9)cppc_set_perf_limited(9)cppc_get_transition_latency(9)
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
- 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