Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gldav(2) — UNIX 2.8BSD

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

loadav(3)

w(1)

la(1)

GLDAV(2)  —  UNIX Programmer’s Manual

NAME

gldav − get load average

SYNOPSIS

gldav(svec)
short svec[3];

DESCRIPTION

Gldav returns the load average on the system in internal format.  The only routine which should call gldav is loadav(3).  All user programs should call loadav(3), which translates the vector into a reasonable format. 

The three numbers returned are the contents of the kernel variable avenrun.  This variable contains the 1, 5, and 15 minute load averages in a psuedo-floating point format.  The leftmost 8 bits are to the left of the decimal point, the rightmost 8 bits are to the right. 

SEE ALSO

loadav(3), w(1), la(1)

ASSEMBLER

(gldav = local 14.) 
(address of vec in r0)
sys local; 9f
9:sys gldav

7th Edition

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026