power_allocator_bind(9)
π power_allocator_bind(9) β¨
Okay so bestie, welcome to the Kernel API Manual β this is a (9) page, aka kernel-API territory, and today's main character is power_allocator_bind. Buckle up π
πΈ NAME πΈ
power_allocator_bind β the way you bind the power_allocator governor to a thermal zone, periodt π
β¨ SYNOPSIS β¨
int power_allocator_bind (struct thermal_zone_device *tz );
That's the whole vibe. One function, one pointer, no drama π¦
π«Ά ARGUMENTS π«Ά
tzβ the thermal zone you're binding it to. That's it, that's the argument, she's a simple icon π
π DESCRIPTION π
So what does she actually do? She initializes the PID controller parameters and then binds the whole thing to the thermal zone you handed her. Lowkey iconic, highkey essential π§β¨
No cap, that's the entire job: init the PID parameters, bind to the tz, done π
π₯ RETURN π₯
Here's the vibe check on what you get back π
0β slay, it worked, success π-ENOMEMβ you ran out of memory π the allocation said "not today"-EINVALβ there are unsupported cooling devices in thetz. Yeah, she checked, and she's not dealing with that π
π SEE ALSO π
Bestie, there's a whole friend group, iykyk π
Kernel file ./drivers/thermal/gov_power_allocator.c, plus:
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)get_governor_trips(9)check_power_actors(9)
Fr fr that's the page π«Ά this little gem lives in ./drivers/thermal, dated October 2026, and it's filed under power_allocator_bind(9) β see you in the group chat, bestie πβ¨
π¦ 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