cpufreq_get_hw_max_freq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

Okay so we're in the kernel API manual today and this one is a lil function called cpufreq_get_hw_max_freq β€” lowercase, snake_case, absolutely serving c-internal-docs realness 🫢


🌸 NAME 🌸

cpufreq_get_hw_max_freq β€” gets the max hardware frequency of the CPU, no cap πŸ‘‘


✨ SYNOPSIS ✨

unsigned int cpufreq_get_hw_max_freq (unsigned int cpu );

Like, that's the whole signature. She's compact. She's iconic. Periodt πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • cpu β€” the CPU number. that's it. that's the arg. bestie just hands over a CPU number and we go from there πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

So the default return value is the max_freq field of cpuinfo. That's the vibe! That's literally what it does. The way that's the entire description and honestly? ate. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/cpufreq/cpufreq.c β€” and, like, the whole friend group πŸ’œ:

That's twenty-eight (28) cross-references, iykyk. click through them, she's worth it 🌈


and that's the page!! mwah πŸ’‹ this lil slice of the Kernel API Manual lives under ./drivers/cpufreq and it's dated October 2026 β€” star ⭐ it, bookmark it, screenshot it for the group chat, idk but don't lose it πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from