get_load(9)
hey bestie π welcome to get_load(9) from the Kernel API Manual β yes, the manual name is folded right in here because we're cute like that. this page is literally about getting the load for a cpu, and it's lowkey iconic. no cap. π
β¨ NAME β¨
get_load β get load for a cpu. πΈ
π¦ SYNOPSIS π¦
okay so the signature is right here, character-for-character, bestie:
u32 get_load (struct cpufreq_cooling_device *cpufreq_cdev , int cpu ,
int cpu_idx );
π ARGUMENTS π
here's the vibe check on each argument β don't skip these, fr fr:
cpufreq_cdevβ thestruct cpufreq_cooling_devicefor the cpu. π«Άcpuβ cpu number. π₯cpu_idxβ index of the cpu intime_in_idlearray. β
π RETURN π
the return value is the average load of cpu cpu in percentage since this function was last called. that's the whole tea β β it's a percentage, and it's averaged since the last call, periodt. π
π SEE ALSO π
go peek at these besties too, iykyk π«Ά:
- Kernel file
./drivers/thermal/cpufreq_cooling.c struct time_in_idle(9)struct cpufreq_cooling_device(9)get_level(9)get_dynamic_power(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)
and that's the page, bestie π sourced from ./drivers/thermal, dated October 2026, and filed under get_load(9). 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