1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _TOOLS_LINUX_MM_H
3 #define _TOOLS_LINUX_MM_H
5 #include <linux/types.h>
8 long uptime; /* Seconds since boot */
9 unsigned long loads[3]; /* 1, 5, and 15 minute load averages */
10 unsigned long totalram; /* Total usable main memory size */
11 unsigned long freeram; /* Available memory size */
12 unsigned long sharedram; /* Amount of shared memory */
13 unsigned long bufferram; /* Memory used by buffers */
14 unsigned long totalswap; /* Total swap space size */
15 unsigned long freeswap; /* swap space still available */
16 __u16 procs; /* Number of current processes */
17 __u16 pad; /* Explicit padding for m68k */
18 unsigned long totalhigh; /* Total high memory size */
19 unsigned long freehigh; /* Available high memory size */
20 __u32 mem_unit; /* Memory unit size in bytes */
23 extern void si_meminfo(struct sysinfo * val);
25 #endif /* _TOOLS_LINUX_MM_H */