uronode/sysinfo.h

32 lines
868 B
C
Raw Permalink Normal View History

2015-09-03 20:01:45 +01:00
#ifndef SYSINFO_H
#define SYSINFO_H
2016-04-01 16:06:32 +01:00
extern int loadavg(double *av1, double *av5, double *av15);
extern int uptime (double *uptime_secs, double *idle_secs);
extern int load_meminfo(void);
// extern int meminfo(const char *s);
/*
2015-09-03 20:01:45 +01:00
unsigned** meminfo(void);
enum meminfo_row { meminfo_main = 0, meminfo_free, meminfo_buffers,
meminfo_cached, meminfo_scached, meminfo_active,
meminfo_inactive, meminfo_htotal, meminfo_hfree,
meminfo_ltotal, meminfo_lfree, meminfo_stotal,
meminfo_sfree, meminfo_dirty, meminfo_writeback,
meminfo_anonpages, meminfo_mapped, meminfo_slab,
meminfo_sreclaim, meminfo_sunreclaim, meminfo_pagetables,
meminfo_nfs_unstab, meminfo_bounce, meminfo_climit,
meminfo_cas, meminfo_vmtotal, meminfo_vmused,
meminfo_vmchunk
2016-04-01 16:06:32 +01:00
2015-09-03 20:01:45 +01:00
};
enum meminfo_col { meminfo_total = 0
};
unsigned read_total_main(void);
2016-04-01 16:06:32 +01:00
*/
2015-09-03 20:01:45 +01:00
#endif /* SYSINFO_H */