2002-12-09 07:00:07 +00:00
|
|
|
#ifndef PROC_SYSINFO_H
|
|
|
|
#define PROC_SYSINFO_H
|
2003-05-31 00:38:55 +00:00
|
|
|
#include <sys/types.h>
|
2014-07-06 16:21:01 +02:00
|
|
|
#include <dirent.h>
|
2002-11-25 10:16:33 +00:00
|
|
|
|
2016-04-16 17:03:57 +10:00
|
|
|
#include <features.h>
|
2015-06-20 07:43:02 +10:00
|
|
|
__BEGIN_DECLS
|
2002-12-09 07:00:07 +00:00
|
|
|
|
2011-07-14 21:16:02 +10:00
|
|
|
extern int have_privs; /* boolean, true if setuid or similar */
|
2002-02-01 22:47:29 +00:00
|
|
|
|
2015-06-29 22:31:36 +10:00
|
|
|
long procps_cpu_count(void);
|
2015-07-01 22:08:02 +10:00
|
|
|
long procps_hertz_get(void);
|
|
|
|
int procps_loadavg(double *av1, double *av5, double *av15);
|
2016-04-16 17:03:57 +10:00
|
|
|
unsigned int procps_pid_length(void);
|
2002-02-01 22:47:29 +00:00
|
|
|
|
2005-10-30 00:14:16 +00:00
|
|
|
#define BUFFSIZE (64*1024)
|
2002-10-06 16:46:06 +00:00
|
|
|
|
2003-06-08 17:28:06 +00:00
|
|
|
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 05:20:19 +00:00
|
|
|
|
2015-06-20 07:43:02 +10:00
|
|
|
__END_DECLS
|
2002-02-01 22:47:29 +00:00
|
|
|
#endif /* SYSINFO_H */
|