of_cpufreq_cooling_register(9)
β¨ of_cpufreq_cooling_register β¨
okay bestie, welcome to the Kernel API Manual π this one lives in section 9 (kernel API, iykyk) and it's all about making a cpufreq cooling device based on DT π
πΈ NAME πΈ
of_cpufreq_cooling_register β create cpufreq cooling device based on DT.
like, literally that's the whole job. it makes a cooling device for your CPU's frequency scaling, and it does it using device tree info π
π¦ SYNOPSIS π¦
struct thermal_cooling_device * of_cpufreq_cooling_register (struct
cpufreq_policy *policy );
she returns a struct thermal_cooling_device * and takes exactly one arg, no more no less, periodt β¨
π ARGUMENTS π
policyβ cpufreq policy. that's it, that's the arg π«Ά it's astruct cpufreq_policy *and it's the cpufreq policy, fr fr.
π₯ SEE ALSO π₯
- Kernel file
./include/linux/cpu_cooling.h cpufreq_cooling_register(9)cpufreq_cooling_unregister(9)
like if you liked this one, go read her sisters, they're iconic π
and that's the whole page bestie π no cap, she's short but she slays π
this has been your kernel API moment from ./include/linux, dated October 2026, in section 9 of the manual β mwah, go register some cooling devices π§π
π¦ 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