1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _LINUX_SYSINFO_H
3 #define _LINUX_SYSINFO_H
4 
5 #include "standard-headers/linux/types.h"
6 
7 #define SI_LOAD_SHIFT	16
8 struct sysinfo {
9 	long uptime;		/* Seconds since boot */
10 	unsigned long loads[3];	/* 1, 5, and 15 minute load averages */
11 	unsigned long totalram;	/* Total usable main memory size */
12 	unsigned long freeram;	/* Available memory size */
13 	unsigned long sharedram;	/* Amount of shared memory */
14 	unsigned long bufferram;	/* Memory used by buffers */
15 	unsigned long totalswap;	/* Total swap space size */
16 	unsigned long freeswap;	/* swap space still available */
17 	uint16_t procs;		   	/* Number of current processes */
18 	uint16_t pad;		   	/* Explicit padding for m68k */
19 	unsigned long totalhigh;	/* Total high memory size */
20 	unsigned long freehigh;	/* Available high memory size */
21 	uint32_t mem_unit;			/* Memory unit size in bytes */
22 	char _f[20-2*sizeof(unsigned long)-sizeof(uint32_t)];	/* Padding: libc5 uses this.. */
23 };
24 
25 #endif /* _LINUX_SYSINFO_H */
26