thermal_set_governor(9)
π thermal_set_governor(9) β Kernel API Manual energy β¨
okay so bestie, welcome to the thermal_set_governor page, straight out of the Kernel API Manual π this one's short and sweet but she's important, so pay attention okay?
β¨ NAME β¨
thermal_set_governor β switch to another governor ππ
like, the whole personality of this function is "swap out the governor" and honestly? iconic.
πΈ SYNOPSIS πΈ
int thermal_set_governor (struct thermal_zone_device *tz , struct
thermal_governor *new_gov );
she takes two things and she returns an int, that's the whole vibe π«Ά
π¦ ARGUMENTS π¦
tzβ a valid pointer to astruct thermal_zone_deviceβ bestie please make it valid, this is not the place for a silly little garbage pointer okay πnew_govβ pointer to the new governor π this is the one sliding into the role
π DESCRIPTION π
Change the governor of thermal zone tz. that's it, that's the whole job π
β¨ new governor, new era, main character energy fr fr.
π₯ RETURN π₯
0on success π slay, we love a clean zero- an error if the new governor's
bind_to_tzfailed π like, the glow-up didn't stick
ngl if you get the error back it means the bind_to_tz of the new governor didn't work out β so don't go assuming the swap happened π
π SEE ALSO π
- Kernel file
./drivers/thermal/thermal_core.cπ (yes, the source file, go read her) bind_previous_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_cooling_device_unregister(9)thermal_zone_device_register_with_trips(9)thermal_zone_device_unregister(9)thermal_zone_get_zone_by_name(9)
that's the whole friend group right there π«Άβ¨ go read them too, iykyk π§
and that's the page bestie!! π this little beauty lives under ./drivers/thermal and the version is dated October 2026, and the title is still thermal_set_governor(9) because we don't do rebrands here π periodt πβ
π¦ 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