cppc_perf_ctrs_in_pcc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cppc_perf_ctrs_in_pcc(9) β€” from the Kernel API Manual, bestie

Okay so picture this: you're deep in the kernel docs, section 9, and you land on cppc_perf_ctrs_in_pcc. Sounds scary? It's not. It's literally a vibe check for performance counters, and I'm gonna walk you through it 🫢


✨ NAME ✨

cppc_perf_ctrs_in_pcc β€” check if any perf counters are in a PCC region. That's it, that's the whole job. No cap πŸ’–


🌸 SYNOPSIS 🌸

bool cppc_perf_ctrs_in_pcc (void );

Yes bestie, it returns a bool. Yes, she takes nothing. Iconic minimalism πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments. Zero. None. She doesn't want your parameters, she doesn't need your parameters, she's booked and busy being a void πŸ’…

πŸ’– DESCRIPTION πŸ’–

So here's the tea πŸ“ CPPC is super flexible about how CPU performance counters get accessed β€” like, there are options, it's giving choose-your-own-adventure. One of those choices is PCC regions, and the thing about PCC regions is they can have a high access latency 😭 like, not fast. Not snappy. We're waiting.

That's exactly why this routine exists: it lets callers of cppc_get_perf_ctrs find out about that latency ahead of time, so nobody gets jump-scared by a slow read. It's the "hey bestie, just so you know before you commit" of kernel APIs πŸ™ˆβœ¨


πŸ”₯ RETURN πŸ”₯

  • true β€” if any of the counters are in PCC regions πŸ‘€
  • false β€” otherwise ✌️

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/acpi/cppc_acpi.c β€” and honestly, the whole friend group:


ngl the whole list is a mood, go read them, iykyk 🌈

And that's the page!! Signing off from ./drivers/acpi, dated October 2026 β€” this section 9 page (cppc_perf_ctrs_in_pcc(9)) ate and left no crumbs. Periodt πŸ’€πŸ’œπŸ§š

πŸ“¦ where this page comes from