get_sustainable_power(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ 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:


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