BSD 4_4 development
[unix-history] / usr / share / man / cat3 / kvm_getloadavg.0
KVM_GETLOADAVG(3) BSD Programmer's Manual KVM_GETLOADAVG(3)
N\bNA\bAM\bME\bE
k\bkv\bvm\bm_\b_g\bge\bet\btl\blo\boa\bad\bda\bav\bvg\bg - get error message on kvm descriptor
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
#\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<s\bsy\bys\bs/\b/r\bre\bes\bso\bou\bur\brc\bce\be.\b.h\bh>\b>
#\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<k\bkv\bvm\bm.\b.h\bh>\b>
_\bi_\bn_\bt
k\bkv\bvm\bm_\b_g\bge\bet\btl\blo\boa\bad\bda\bav\bvg\bg(_\bk_\bv_\bm_\b__\bt _\b*_\bk_\bd, _\bd_\bo_\bu_\bb_\bl_\be _\bl_\bo_\ba_\bd_\ba_\bv_\bg_\b[_\b], _\bi_\bn_\bt _\bn_\be_\bl_\be_\bm);
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The k\bkv\bvm\bm_\b_g\bge\bet\btl\blo\boa\bad\bda\bav\bvg\bg() function returns the number of processes in the sys-
tem run queue of the kernel indicated by _\bk_\bd, averaged over various peri-
ods of time. Up to _\bn_\be_\bl_\be_\bm samples are retrieved and assigned to succes-
sive elements of _\bl_\bo_\ba_\bd_\ba_\bv_\bg[]. The system imposes a maximum of 3 samples,
representing averages over the last 1, 5, and 15 minutes, respectively.
D\bDI\bIA\bAG\bGN\bNO\bOS\bST\bTI\bIC\bCS\bS
If the load average was unobtainable, -1 is returned; otherwise, the num-
ber of samples actually retrieved is returned.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
uptime(1), kvm(3), getloadavg(3)
4.4BSD June 4, 1993 1