devfreq_cooling_unregister(9)
π NAME π
devfreq_cooling_unregister β the "okay we're done here, pack it up" of devfreq cooling devices. Unregisters them. Periodt.
β¨ SYNOPSIS β¨
void devfreq_cooling_unregister (struct thermal_cooling_device *cdev );
No return value bestie, it's void β it just does the thing and dips. π«Ά
π ARGUMENTS π
cdevβ pointer to the devfreq cooling device you wanna unregister. That's it. That's the whole vibe check. π
π¦ DESCRIPTION π¦
So basically this function unregisters the devfreq cooling device π β and bestie, listen, it also tears down the related Energy Model if it was present. Not always. Only if it was there. iykyk. π
Lowkey important: it's the "if it was present" part that carries the whole meaning, so don't skip it when you're reading the source. Not me being picky, just being fr fr. β¨
π₯ SEE ALSO π₯
Okay so if you're going down the rabbit hole (and you should, it's giving main character energy), these are your next stops:
- Kernel file
./drivers/thermal/devfreq_cooling.cβ the actual file, the source of truth, the icon π§ struct devfreq_cooling_device(9)get_perf_idx(9)devfreq_cooling_gen_tables(9)of_devfreq_cooling_register_power(9)of_devfreq_cooling_register(9)devfreq_cooling_register(9)devfreq_cooling_em_register(9)
Like, the whole register/unregister family reunion. Obsessed. π
Alright bestie, that's the page π β brought to you by the Kernel API Manual, filed under ./drivers/thermal, dated October 2026. Slay, go forth and unregister responsibly. π¦β¨
π¦ 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