sysinfo.h 986 B

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