cppc_get_perf_ctrs(9)
π cppc_get_perf_ctrs(9) β like, the Kernel API Manual page, bestie
okay so picture this: it's a Kernel API Manual page, the function is cppc_get_perf_ctrs, and it does exactly one iconic thing β it reads a CPU's performance feedback counters. that's it. that's the whole vibe. β¨
β¨ NAME β¨
cppc_get_perf_ctrs β Read a CPU's performance feedback counters. π
π¦ SYNOPSIS π¦
int cppc_get_perf_ctrs (int cpunum , struct cppc_perf_fb_ctrs
*perf_fb_ctrs );
no cap, that's the whole signature. look at it. giving very much "small function, big responsibility." π
πΈ ARGUMENTS πΈ
cpunumβ the CPU you're pulling counters from. like, which CPU bestie. you gotta say. πperf_fb_ctrsβ a ptr tocppc_perf_fb_ctrs. and where do you find that?cppc_acpi.h, obviously. go look, i'll wait. π«Ά
π₯ RETURN π₯
0 for success with perf_fb_ctrs populated β slay, you got your data π β else -ERRNO. yep, the classic negative-errno situation. it's giving "something went wrong and we're telling you in the most unix way possible." π
π SEE ALSO π
okay this list is long and honestly kind of a flex. all of these live in the kernel file ./drivers/acpi/cppc_acpi.c. iykyk β¨
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_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_set_perf(9)cppc_get_perf_limited(9)cppc_set_perf_limited(9)cppc_get_transition_latency(9)
bestie a little reminder: perf_fb_ctrs is a ptr, so make sure it points at something real before you call this. we love a valid pointer in this house. π
and that's the page!! mwah π β this one came from the source path ./drivers/acpi, dated October 2026, and yes the header/footer both said cppc_get_perf_ctrs(9) because consistency is hot. 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