get_dynamic_power(9)
πΈ get_dynamic_power(9) πΈ
okay bestie, welcome to the Kernel API Manual π
this one's all about get_dynamic_power β the little function that does the math on how much power your CPUs are actually burning right now, no cap. it's a kernel-level read, iykyk β¨
β¨ NAME β¨
get_dynamic_power β calculate the dynamic power π«Ά
π SYNOPSIS π
u32 get_dynamic_power (struct cpufreq_cooling_device *cpufreq_cdev ,
unsigned long freq );
like, that's the whole call. two args, one u32 back, iconic π
π¦ ARGUMENTS π¦
cpufreq_cdevβ thecpufreq_cooling_devicefor this cdev. it's literally the cooling device we're doing the vibes check on πfreqβ the current frequency, bestie. the speed the CPU is running at right now β
π₯ RETURN π₯
it returns the dynamic power consumed by the cpus described by cpufreq_cdev π like, one u32, that's it, that's the whole result. slay.
ngl it's literally just a power number for those cpus β nothing sketchy, no hidden side quests π
πΈ SEE ALSO πΈ
- Kernel file
./drivers/thermal/cpufreq_cooling.cβ the actual source, go read it fr fr π§ struct time_in_idle(9)struct cpufreq_cooling_device(9)get_level(9)get_load(9)cpufreq_get_requested_power(9)cpufreq_state2power(9)cpufreq_power2state(9)cpufreq_get_max_state(9)cpufreq_get_cur_state(9)cpufreq_set_cur_state(9)__cpufreq_cooling_register(9)cpufreq_cooling_register(9)of_cpufreq_cooling_register(9)cpufreq_cooling_unregister(9)
all of these are the friend group π«Ά go say hi to them when you're done here.
that's the whole page bestie, you ate that π
mwah! this one lives in ./drivers/thermal and it's dated October 2026 β see you in the next manpage, ily! ππ
π¦ 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