sysinfo.h 930 B

12345678910111213141516171819202122
  1. #ifndef _LINUX_SYSINFO_H
  2. #define _LINUX_SYSINFO_H
  3. #define SI_LOAD_SHIFT 16
  4. struct sysinfo {
  5. long uptime; /* Seconds since boot */
  6. unsigned long loads[3]; /* 1, 5, and 15 minute load averages */
  7. unsigned long totalram; /* Total usable main memory size */
  8. unsigned long freeram; /* Available memory size */
  9. unsigned long sharedram; /* Amount of shared memory */
  10. unsigned long bufferram; /* Memory used by buffers */
  11. unsigned long totalswap; /* Total swap space size */
  12. unsigned long freeswap; /* swap space still available */
  13. unsigned short procs; /* Number of current processes */
  14. unsigned short pad; /* explicit padding for m68k */
  15. unsigned long totalhigh; /* Total high memory size */
  16. unsigned long freehigh; /* Available high memory size */
  17. unsigned int mem_unit; /* Memory unit size in bytes */
  18. char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */
  19. };
  20. #endif /* _LINUX_SYSINFO_H */