cpufreq_get_hw_max_freq(9)
π 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 π:
cpufreq_cpu_get(9)cpufreq_cpu_put(9)adjust_jiffies(9)cpufreq_notify_transition(9)cpufreq_enable_fast_switch(9)cpufreq_disable_fast_switch(9)cpufreq_driver_resolve_freq(9)cpufreq_parse_governor(9)cpufreq_add_dev(9)cpufreq_out_of_sync(9)cpufreq_quick_get(9)cpufreq_quick_get_max(9)cpufreq_get(9)cpufreq_suspend(9)cpufreq_resume(9)cpufreq_driver_test_flags(9)cpufreq_get_current_driver(9)cpufreq_get_driver_data(9)cpufreq_register_notifier(9)cpufreq_unregister_notifier(9)cpufreq_driver_fast_switch(9)cpufreq_driver_adjust_perf(9)cpufreq_driver_has_adjust_perf(9)cpufreq_update_pressure(9)cpufreq_set_policy(9)cpufreq_update_policy(9)cpufreq_update_limits(9)cpufreq_register_driver(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms