get_avenrun(9)
π get_avenrun π
okay bestie, this is the Kernel API Manual page for get_avenrun, and we are gonna get you comfy with it π
no cap.
β¨ NAME β¨
get_avenrun β get the load average array π«Ά
πΈ SYNOPSIS πΈ
void get_avenrun (unsigned long *loads , unsigned long offset , int
shift );
π ARGUMENTS π
loadsβ pointer to destination load array β¨ like, that's where the load values are headed.offsetβ offset to add π« yes, literally an offset that gets added.shiftβ shift count to shift the result left π keep it cute, it's the left-shift amount.
π¦ DESCRIPTION π¦
okay so the vibe here is: these values are estimates at best, so no need for locking. fr fr, that's the whole note β they're estimates, and locking is not needed πβ¨
π SEE ALSO π
- Kernel file
./kernel/sched/loadavg.cπ fixed_power_int(9)π§
and that's the whole vibe check, bestie π source/version: ./kernel/sched Β· date: October 2026 Β· page: get_avenrun(9) π«Άπ
π¦ 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