cppc_get_nominal_perf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cppc_get_nominal_perf πŸ’…

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this one's a little function called cppc_get_nominal_perf, and honestly? it's giving "small but mighty." it does exactly one job and it does it cute. let's get into it πŸŽ€


✨ NAME ✨

cppc_get_nominal_perf β€” get the nominal performance register value. that's it. that's the whole vibe. she reads a register, she hands you a number, she leaves. iconic behavior fr fr πŸ’…


🌸 SYNOPSIS 🌸

int cppc_get_nominal_perf (int cpunum , u64 *nominal_perf );

look at her. two arguments, returns an int. no cap, that's the whole signature. πŸ¦‹


🫢 ARGUMENTS 🫢

  • cpunum β€” the CPU you wanna pull the nominal performance from. like, which cpu bestie. pick one. πŸ‘‘
  • nominal_perf β€” the return address. this is where the value lands when the function's done doing its little thing. it's a u64 *, so she's writing through a pointer, very main character energy ✨

⭐ RETURN ⭐

  • 0 for success β€” slay, we love a clean zero πŸ’–
  • -EIO otherwise β€” not slay. something went sideways at the I/O level 😭
heads up: those are literally the only two outcomes listed. no in-between, no "well actually," just 0 or -EIO. periodt.

🌈 SEE ALSO 🌈

okay this section is a whole friend group, buckle up 🧚 β€” all of these live in the kernel file ./drivers/acpi/cppc_acpi.c:

like I said. whole friend group. iykyk πŸ›


and that's the page, bestie!! this little gem lives under ./drivers/acpi, stamped October 2026, and it's filed in the Kernel API Manual β€” go forth and read your nominal perf, responsibly πŸ“πŸ’œ

πŸ“¦ where this page comes from