KVM_GETLOADAVG(3)
β¨ NAME β¨
okay so bestie, this is kvm_getloadavg(3) β literally the βget load average of the systemβ girlie from the Library Functions Manual. sheβs here to hand you the system load average, and she ate. π
π LIBRARY π
Kernel Data Access Library (libkvm, -lkvm) β thatβs the whole squad. π«Ά
π SYNOPSIS π
#include <kvm.h>
int
kvm_getloadavg(kvm_t *kd, double loadavg[], int nelem);
π DESCRIPTION π
The kvm_getloadavg() function returns the number of processes in the system run queue of the kernel indicated by kd, averaged over various periods of time. lowkey iconic.
Up to nelem samples are retrieved and assigned to successive elements of loadavg[]. The system imposes a maximum of 3 samples, representing averages over the last 1, 5, and 15 minutes, respectively. periodt. β±οΈβ¨
π©Ί DIAGNOSTICS π©Ί
If the load average was unobtainable, -1 is returned; otherwise, the number of samples actually retrieved is returned. no cap, thatβs the whole vibe check. π
π SEE ALSO π
π okay bestie, thatβs the page! source/version and date: Debian, June 4, 1993, KVM_GETLOADAVG(3) β hope u slayed the load average. mwah! ππ¦
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 1992, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms