get_governor_trips(9)
π get_governor_trips β kernel API manual, section 9, bestie π
Okay so real quick: this is a page from the Kernel API Manual, section 9 β yes the fancy kernel-functions section β and it's about a tiny little helper called get_governor_trips. Buckle up, it's short and it's adorable.
β¨ NAME β¨
get_governor_trips β literally just grabs the two trip points that are key for this governor, no cap π
π¦ SYNOPSIS π¦
void get_governor_trips (struct thermal_zone_device *tz , struct
power_allocator_params *params );
That's it. That's the whole signature. She's void, she returns nothing, she just does the thing π
πΈ ARGUMENTS πΈ
tzβ the thermal zone you're operating on. Like, this is the zone, the main character of the operation πparamsβ a pointer to the private data for this governor. Her personal lil stash of info π
β DESCRIPTION β
So the power allocator governor thrives when it has two trip points to work with, and those two are:
- a "switch on" trip point β¨
- a "maximum desired temperature" π₯
And here's the vibe: those two are defined as the first and last passive trip points. That's the whole definition, iykyk.
Now for the edge cases, because of course there are edge cases π
If there's only one trip point, then that one lonely trip point is considered to be the "maximum desired temperature" trip point β and the governor is just always on. Forever. Constantly. It's giving main character energy that never clocks out π
And if there are no passive or active trip points at all? Then the governor won't do anything. Nothing. Zilch. In fact β and this is the wild part β its throttle function won't be called at all. Like, it doesn't even get the invite to the party π
Fr fr bestie, if you're expecting the throttle function to fire with zero passive/active trip points, it will not. It literally will not be called. Don't come for me, that's just what the manual says π«Ά
π SEE ALSO π
Kernel file ./drivers/thermal/gov_power_allocator.c, plus the whole friend group:
mul_frac(9)div_frac(9)struct power_actor(9)struct power_allocator_params(9)estimate_sustainable_power(9)estimate_pid_constants(9)get_sustainable_power(9)pid_controller(9)power_actor_set_power(9)divvy_up_power(9)check_power_actors(9)power_allocator_bind(9)
Okay that's the whole page, you ate it up π Signing off from ./drivers/thermal, dated October 2026 β go forth and get those trip points, 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