thermal_coo...e_unregister(9)
π thermal_cooling_device_unregister β the Kernel API Manual, bestie edition π
Okay so this page lives in the Kernel API Manual (section 9, the grown-up kernel-functions section, iykyk) and it's all about yeeting a thermal cooling device out of existence. Let's get into it π«Ά
β¨ NAME β¨
thermal_cooling_device_unregister β literally removes a thermal cooling device. That's it. That's the whole job. Iconic, honestly π
πΈ SYNOPSIS πΈ
void thermal_cooling_device_unregister (struct thermal_cooling_device
*cdev );
Note the void β this one doesn't hand you back a return value to obsess over. It just does the thing. No cap β¨
π¦ ARGUMENTS π¦
cdevβ the thermal cooling device you want to remove. Like, the one you're sending off into the sunset π . Hand it over and it gets unregistered.
π SEE ALSO π
The kernel file this lives in is ./drivers/thermal/thermal_core.c β that's the main character's address π. And here's the whole friend group, all of them cross-referenced and accounted for:
bind_previous_governor(9)thermal_set_governor(9)thermal_bind_cdev_to_trip(9)thermal_unbind_cdev_from_trip(9)thermal_cooling_device_register(9)devm_thermal_cooling_device_register(9)thermal_cooling_device_update(9)thermal_zone_device_register_with_trips(9)thermal_zone_device_unregister(9)thermal_zone_get_zone_by_name(9)
Like the register one is right there if you need to put a device back β the unregister is the breakup, the register is the getting-back-together, we've all been there ππ
heads up bestie: this is a void function, so there's no error code to check afterwards. Just call it and trust the vibe check π
And that's the whole page, fr fr π This was brought to you by ./drivers/thermal, dated October 2026 β see you in the next man page, bestie, mwah ππ§π
π¦ 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