procps/proc/sysinfo.h

32 lines
667 B
C
Raw Normal View History

2002-12-09 12:30:07 +05:30
#ifndef PROC_SYSINFO_H
#define PROC_SYSINFO_H
2003-05-31 06:08:55 +05:30
#include <sys/types.h>
#include <dirent.h>
#include <proc/procps.h>
2002-11-25 15:46:33 +05:30
__BEGIN_DECLS
2002-12-09 12:30:07 +05:30
extern int have_privs; /* boolean, true if setuid or similar */
2002-02-02 04:17:29 +05:30
long procps_cpu_count(void);
long procps_hertz_get(void);
int procps_loadavg(double *av1, double *av5, double *av15);
2002-02-02 04:17:29 +05:30
2005-10-30 05:44:16 +05:30
#define BUFFSIZE (64*1024)
2003-05-31 06:08:55 +05:30
typedef unsigned long long jiff;
2002-10-06 22:16:06 +05:30
2003-06-08 22:58:06 +05:30
typedef struct slab_cache{
char name[48];
unsigned active_objs;
unsigned num_objs;
unsigned objsize;
unsigned objperslab;
}slab_cache;
extern unsigned int getslabinfo (struct slab_cache**);
2003-07-03 10:50:19 +05:30
extern unsigned get_pid_digits(void) FUNCTION;
__END_DECLS
2002-02-02 04:17:29 +05:30
#endif /* SYSINFO_H */