]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/mm.h
New upstream release
[bcachefs-tools-debian] / include / linux / mm.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _TOOLS_LINUX_MM_H
3 #define _TOOLS_LINUX_MM_H
4
5 #include <linux/types.h>
6
7 struct sysinfo {
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 */
21 };
22
23 extern void si_meminfo(struct sysinfo * val);
24
25 #endif /* _TOOLS_LINUX_MM_H */