power_actor_set_power(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 to thermal_cooling_device
  • instance β€” thermal instance to update
  • power β€” 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 πŸ’œ

  • 0 on success, -EINVAL if 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:


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