power_actor_set_power(9)
π bestie's guide to power_actor_set_power(9) π
okay so you opened the power_actor_set_power(9) page β welcome to the Kernel API Manual, but make it cute and useful. This is the one about limiting the maximum power a cooling device consumes. no cap, it's giving thermal-management main character energy. π§
πΈ NAME πΈ
power_actor_set_power β limit the maximum power a cooling device consumes
β¨ SYNOPSIS β¨
int power_actor_set_power (struct thermal_cooling_device *cdev , struct
thermal_instance *instance , u32 power );
π ARGUMENTS π
cdevβ pointer tothermal_cooling_deviceinstanceβ thermal instance to updatepowerβ the power in milliwatts
π¦ DESCRIPTION π¦
Set the cooling device to consume at most power milliwatts. The limit is expected to be a cap at the maximum power consumption. periodt. That's the vibe: a max-power ceiling, bestie. π
π RETURN π
0on success,-EINVALif the cooling device does not implement the power actor API, or-E*for other failures.
π SEE ALSO π
Kernel file: ./drivers/thermal/gov_power_allocator.c β and the whole SEE ALSO squad is:
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)divvy_up_power(9)get_governor_trips(9)check_power_actors(9)power_allocator_bind(9)
manual footer check: source/version is ./drivers/thermal and the date is October 2026. mwah π go cap that power, 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