diff options
Diffstat (limited to 'include/linux/sysinfo.h')
| -rw-r--r-- | include/linux/sysinfo.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/sysinfo.h b/include/linux/sysinfo.h new file mode 100644 index 000000000000..ec4fc228ac0a --- /dev/null +++ b/include/linux/sysinfo.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #ifndef _LINUX_SYSINFO_H | ||
| 2 | #define _LINUX_SYSINFO_H | ||
| 3 | |||
| 4 | #define SI_LOAD_SHIFT 16 | ||
| 5 | struct sysinfo { | ||
| 6 | long uptime; /* Seconds since boot */ | ||
| 7 | unsigned long loads[3]; /* 1, 5, and 15 minute load averages */ | ||
| 8 | unsigned long totalram; /* Total usable main memory size */ | ||
| 9 | unsigned long freeram; /* Available memory size */ | ||
| 10 | unsigned long sharedram; /* Amount of shared memory */ | ||
| 11 | unsigned long bufferram; /* Memory used by buffers */ | ||
| 12 | unsigned long totalswap; /* Total swap space size */ | ||
| 13 | unsigned long freeswap; /* swap space still available */ | ||
| 14 | unsigned short procs; /* Number of current processes */ | ||
| 15 | unsigned short pad; /* explicit padding for m68k */ | ||
| 16 | unsigned long totalhigh; /* Total high memory size */ | ||
| 17 | unsigned long freehigh; /* Available high memory size */ | ||
| 18 | unsigned int mem_unit; /* Memory unit size in bytes */ | ||
| 19 | char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */ | ||
| 20 | }; | ||
| 21 | |||
| 22 | #endif /* _LINUX_SYSINFO_H */ | ||
