get_load(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” the struct cpufreq_cooling_device for the cpu. 🫢
  • cpu β€” cpu number. πŸ”₯
  • cpu_idx β€” index of the cpu in time_in_idle array. ⭐

πŸ‘‘ 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 🫢:


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