cppc_get_desired_perf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cppc_get_desired_perf(9) ✨

okay so bestie, welcome to the Kernel API Manual 🫢 β€” this one's a lil function called cppc_get_desired_perf and honestly? it does exactly what it says on the tin: it gets you the desired performance register value. no cap. πŸŽ€


🌸 NAME 🌸

cppc_get_desired_perf β€” literally just Get the desired performance register value. that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

int cppc_get_desired_perf (int cpunum , u64 *desired_perf );

πŸ¦‹ ARGUMENTS πŸ¦‹

bestie there are exactly two (2) things you gotta hand over, and here they are:

  • cpunum β€” the CPU you wanna pull the desired performance from πŸ‘‘ like, which CPU, be specific.
  • desired_perf β€” the return address 🎯 this is where the good stuff lands.

πŸ’œ RETURN πŸ’œ

here's the vibe check on the return value, pay attention fr fr:

  • 0 means success, slay ✨
  • -EOPNOTSUPP means it's _CPC revision 4 or later πŸ™ˆ that's the "not supported, babe" one
  • and any other negative errno means something else went sideways 😭

🌈 SEE ALSO 🌈

okay this is the girlypop reading list β€” the whole friend group of related functions lives in the kernel file ./drivers/acpi/cppc_acpi.c, and here's everyone invited to the group chat πŸ’–:


ngl that's a long list but every single one of them earned their spot πŸ’… don't skip 'em.

and that's the whole page, bestie!! 🧚 this little gem lives under ./drivers/acpi in the Kernel API Manual, dated October 2026 β€” bye, ily, go read your registers πŸ’–πŸ‘‘πŸ“

πŸ“¦ where this page comes from