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