GLDAV(2) UNIX Programmer's Manual GLDAV(2) NAME gldav - get load average SYNOPSIS gldav(svec) short svec[3]; DESCRIPTION _G_l_d_a_v returns the load average on the system in internal format. The only routine which should call _g_l_d_a_v is _l_o_a_d_a_v(3). All user programs should call _l_o_a_d_a_v(3), which translates the vector into a reasonable format. The three numbers returned are the contents of the kernel variable _a_v_e_n_r_u_n. 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. ERRORS _G_l_d_a_v will fail if: [EFAULT] _S_v_e_c points to an address not in the process's allocated address space. SEE ALSO la(1), w(1), loadav(3) ASSEMBLER (local = 58., gldav = 14.) (address of vec in r0) sys local; 9f . . . .data 9: sys gldav Printed 7/30/83 1