cppc_perf_ctrs_in_pcc_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cppc_perf_ctrs_in_pcc_cpu(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're fancy here ✨ β€” and today's main character is cppc_perf_ctrs_in_pcc_cpu, a tiny little bool-returning icon whose whole personality is asking one (1) question about performance counters and PCC regions. no cap, that's the whole vibe. πŸŽ€


✨ NAME ✨

cppc_perf_ctrs_in_pcc_cpu β€” literally just checks whether any of a CPU's perf counters live in PCC. that's it. that's the function. πŸ¦‹


🌸 SYNOPSIS 🌸

bool cppc_perf_ctrs_in_pcc_cpu (unsigned int cpu );

look at her. one argument, returns a bool. lowkey minimalist queen πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • cpu β€” the CPU you wanna snoop on, i.e. the one whose perf counters you're checking. bestie, you gotta tell her which CPU. πŸ™ˆ

⭐ RETURN ⭐

  • true β€” yup, at least one of the counters is hanging out in PCC regions 🫢
  • false β€” nope, none of them are, sad but valid πŸ’€

that's the whole vibe check: true if any of the counters are in PCC regions, false otherwise. periodt.


πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group πŸ«‚ β€” and don't forget the kernel file they all live in: ./drivers/acpi/cppc_acpi.c πŸ“

ngl that's a lot of see-also's β€” she's not clingy, she's just well-connected πŸ’…

πŸŽ€ sign-off πŸŽ€

this little baddie lives in ./drivers/acpi, dated October 2026, and answers to the name cppc_perf_ctrs_in_pcc_cpu(9). slay, go read your counters, love u, bye πŸ’œπŸŒˆ

πŸ“¦ where this page comes from