of_cpufreq_cooling_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 a struct cpufreq_policy * and it's the cpufreq policy, fr fr.

πŸ”₯ SEE ALSO πŸ”₯

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