fair_share_throttle(9)
โจ fair_share_throttle(9) โจ
okay bestie, welcome to fair_share_throttle(9) โ yes that's the section 9 kernel API manual, we're in the deep end today and honestly? it's giving main character energy ๐ซถ
๐ NAME ๐
fair_share_throttle โ literally just throttles the devices associated with the given zone, that's the whole vibe ๐ฅ
๐ธ SYNOPSIS ๐ธ
void fair_share_throttle (struct thermal_zone_device *tz , const struct
thermal_trip_desc *td , int trip_level );
like, it returns void, so don't go looking for a return value, there isn't one, periodt ๐
๐ ARGUMENTS ๐
tzโ athermal_zone_device, the zone we're talking about, the main character of this whole operation ๐tdโ the trip point descriptor, iykyk, it describes the trip point ๐ธtrip_levelโ the number of trips crossed by the zone temperature, like how many trip points the temp has blown past ๐ญ
๐ DESCRIPTION ๐
๐ง Throttling Logic ๐ง
so this is the good part: it uses three parameters to calculate the new throttle state of the cooling devices associated with the given zone. three. not two, not four. the way that it's exactly three params is so iconic โจ
๐ฆ Parameters used for Throttling ๐ฆ
- P1.
max_stateโ the maximum throttle state exposed by the cooling device. the ceiling, the limit, the "no further than this" ๐ซ - P2.
weight[i]/total_weightโ how 'effective' the *i*th device is, in cooling the given zone. basically: how much this device actually pulls its weight in the group chat ๐ช - P3.
trip_level/max_no_of_tripsโ this describes the extent to which the devices should be throttled. and ngl the reasoning here is so real: we do not want to throttle too much when we trip a lower temperature, whereas the throttling is at full swing if we trip critical levels ๐ฅ๐ก๏ธ
and the final formula, the moment you've all been waiting for:
new_state of cooling device = P3 * P2 * P1
that's it. that's the math. P3 times P2 times P1. slay ๐งฎโจ
๐ SEE ALSO ๐
- Kernel file
./drivers/thermal/gov_fair_share.cโ go read it if you're feeling brave bestie ๐
ok that's the whole page, no cap, every single detail preserved ๐
๐ธ ok bye ily, this page is from ./drivers/thermal and it's dated October 2026, and yes that's the same fair_share_throttle(9) we've been screaming about this entire time โ see you in the next manpage, 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