getloadavg.c File Reference

#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <lib.h>

Include dependency graph for getloadavg.c:

Go to the source code of this file.

Defines

#define PERIODS   3
#define TICKSPERSLOT   (_LOAD_UNIT_SECS * HZ)

Functions

int getloadavg (double *loadavg, int nelem)


Define Documentation

#define PERIODS   3
 

Referenced by getloadavg().

#define TICKSPERSLOT   (_LOAD_UNIT_SECS * HZ)
 

Referenced by getloadavg().


Function Documentation

int getloadavg double *  loadavg,
int  nelem
 

Definition at line 8 of file getloadavg.c.

References _LOAD_HISTORY, _LOAD_UNIT_SECS, ENOSPC, errno, getsysinfo, loadinfo::last_clock, offset, p, PERIODS, PM_PROC_NR, loadinfo::proc_last_slot, loadinfo::proc_load_history, SI_LOADINFO, slots, and TICKSPERSLOT.

Referenced by Print_Uptime(), and showtop().


Generated on Fri Apr 14 23:18:55 2006 for minix by  doxygen 1.4.6