get_sustainable_power(9)
π get_sustainable_power(9) β the Kernel API Manual, bestie edition π
okay so you found your way into the kernel API manual (the 9 section, we love a section-9 moment π) and the page you want is get_sustainable_power β literally "Get the right sustainable power". no cap, that's the whole name. let's get into it β¨
πΈ SYNOPSIS πΈ
u32 get_sustainable_power (struct thermal_zone_device *tz , struct
power_allocator_params *params , int control_temp );
yes the spacing is giving "written by a kernel dev at 3am" but we respect it, we don't touch it π
π¦ ARGUMENTS π¦
tzβ the thermal zone you're estimating the constants for. main character energy, obviously π‘οΈparamsβ the parameters for the power allocator governor. it's the vibe check config fr fr.control_tempβ the target temperature for the power allocator governor. the goal, the dream, the temperature we're aiming at π―
β¨ DESCRIPTION β¨
so what does this function actually do, iykyk? it's used for getting the proper sustainable power value, and it does that based on variables that might have been updated by the user sysfs interface. yes, the user can poke at those variables π
and if that happens? the new value is going to be estimated and updated. slay, it self-heals. it's also used after thermal zone binding, where the initial values were set to 0 β so this is the glow-up moment where zero becomes something real π
hot tip from the manpage itself: nothing sketchy here, it's just estimation and updating. but do keep in mind the whole point is that those values can change out from under you via sysfs, so don't go assuming a value is frozen forever, bestie π«Ά
π SEE ALSO π
the kernel file lives at ./drivers/thermal/gov_power_allocator.c and honestly it's worth a scroll π. also go say hi to these icons:
mul_frac(9)div_frac(9)struct power_actor(9)struct power_allocator_params(9)estimate_sustainable_power(9)estimate_pid_constants(9)pid_controller(9)power_actor_set_power(9)divvy_up_power(9)get_governor_trips(9)check_power_actors(9)power_allocator_bind(9)
okay that's the whole page, you ate that ππ
source/version is ./drivers/thermal, dated October 2026, and the page is, of course, get_sustainable_power(9) β mwah, go read the next one, 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