STRUCT POWER_ACTOR(9)
β¨ struct power_actor(9) β¨
okay so bestie, this is a page from the Kernel API Manual and honestly it's giving backstage-pass energy π
β because struct power_actor is literally the internal power information for power actor. no cap, that's the whole NAME vibe: internal, behind-the-scenes, main character energy but for power bookkeeping π«Ά
πΈ SYNOPSIS πΈ
here's the whole struct, copied exactly, don't come for me:
struct power_actor {
u32 req_power;
u32 max_power;
u32 granted_power;
u32 extra_actor_power;
u32 weighted_req_power;
};
five fields, all u32, all iconic in their own way π
π Members π
okay let's meet the cast, one by one π₯
req_powerβ the requested power value. and ngl, important detail: it is not weighted πmax_powerβ the max allocatable power for this actor. like, the ceiling, the limit, the "that's enough out of you" number πgranted_powerβ the granted power for this actor. yes, it's the actual granted one, not the requested one β they're different fields, keep up bestie πextra_actor_powerβ extra power that this actor can receive. bonus power, little treat, extra sprinkle of watts π§β¨weighted_req_powerβ the weighted requested power, as input to IPA. and yes, req_power above was the not weighted one β this is the weighted glow-up version β
quick vibe check:req_power= raw request,weighted_req_power= the same request but weighted for IPA. two different fields, two different jobs, don't mix them up fr fr π
π¦ SEE ALSO π¦
bestie the friend group here is huge and every single one of them matters, so buckle up π¨
- the kernel file
./drivers/thermal/gov_power_allocator.cβ that's the home base π mul_frac(9)div_frac(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)power_allocator_bind(9)
likeβ¦ twelve references plus a source file, we are fed today π go read them all, iykyk π
and that's the page!! mwah π«Ά this one lives in ./drivers/thermal, dated October 2026 β stan a stable kernel API, periodt ππ
π¦ 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