cpufreq_quick_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpufreq_quick_get β€” girl, just tell me the frequency already

okay so this is a page out of the Kernel API Manual (section 9, kernel-space functions, iykyk) and the star of the show is cpufreq_quick_get(9). Sit down, bestie, we're learning about CPU frequencies and it's gonna be adorable. πŸŽ€


✨ NAME ✨

cpufreq_quick_get β€” gets the CPU frequency (in kHz) straight from policy->cur

like, that's it. that's the whole job. she's a simple girl and she delivers. πŸ’–


🌸 SYNOPSIS 🌸

unsigned int cpufreq_quick_get (unsigned int cpu );

one function, one argument, one unsigned int coming back at you. no cap, it's that clean. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cpu β€” the CPU number. which little guy are we asking about? that one. 🫢

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the vibe: this is the last known freq, and the crucial part is that it does not actually go ask the driver for it. no door-knocking, no waiting, no whole production. she already knows. main character energy honestly. πŸ‘‘

and the return value? it's gonna be the same as what's shown in scaling_cur_freq in sysfs. same number, same energy, no surprises. if you've ever stared at scaling_cur_freq wondering what it'd look like as a C function β€” boom, it's this. πŸ˜­πŸ’…

lowkey the whole appeal is that it's quick β€” she's not going to the source, she's reporting what's already on the books. that's the bit. don't forget the bit.

🌈 SEE ALSO 🌈

bestie there is a whole extended universe of cpufreq functions and honestly they all ate. go read the source at ./drivers/cpufreq/cpufreq.c and then spiral through these icons:

fr fr that's twenty-eight whole entries, go off. πŸ”₯


mkay that's the page!! this one lives in ./drivers/cpufreq, dated October 2026, and it's filed as cpufreq_quick_get(9) in the Kernel API Manual β€” mwah, slay, see you in the next manpage bestie πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from