cpufreq_get_max_state(9)
πΈ cpufreq_get_max_state π
okay so bestie, welcome to the <pink>Kernel API Manual</pink> entry for cpufreq_get_max_state β yes it's a (9) page, that's the kernel-section girlies, we love them β¨
π NAME π
cpufreq_get_max_state β the callback function that gets you the max cooling state, periodt.
β¨ SYNOPSIS β¨
int cpufreq_get_max_state (struct thermal_cooling_device *cdev ,
unsigned long *state );
π¦ ARGUMENTS π¦
cdevβ your thermal cooling device pointer. literally the whole device, she's the main character here πstateβ fill this variable with the max cooling state. that's the assignment, bestie, go write into it βοΈ
π DESCRIPTION π
okay so, this is the callback for the thermal cooling device whose whole job is to return the cpufreq max cooling state. like, that's it, that's the vibe. the thermal cooling device calls her up and she hands back the max cooling state. no cap, that's the entire plot π«Ά
π₯ RETURN π₯
0 on success β and like, that's the only outcome, because this function doesn't fail. she simply does not miss ππ
π SEE ALSO π
- Kernel file
./drivers/thermal/cpufreq_cooling.cβ the actual source, iykyk π struct time_in_idle(9)struct cpufreq_cooling_device(9)get_level(9)get_load(9)get_dynamic_power(9)cpufreq_get_requested_power(9)cpufreq_state2power(9)cpufreq_power2state(9)cpufreq_get_cur_state(9)cpufreq_set_cur_state(9)__cpufreq_cooling_register(9)cpufreq_cooling_register(9)of_cpufreq_cooling_register(9)cpufreq_cooling_unregister(9)
ngl bestie, that whole list is the friend group β go read them all, they're all iconic in their own way π
β and that's a wrap! this little love letter lives in ./drivers/thermal, stamped <purple>October 2026</purple>, and it's part of the <mint>Kernel API Manual</mint> β mwah, go slay your cooling states π§ββοΈπ
π¦ 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