thermal_set_governor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a struct 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 πŸ”₯

  • 0 on success πŸŽ‰ slay, we love a clean zero
  • an error if the new governor's bind_to_tz failed πŸ’€ 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 🌈

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