Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _LINUX_SYSINFO_H
0003 #define _LINUX_SYSINFO_H
0004 
0005 #include <linux/types.h>
0006 
0007 #define SI_LOAD_SHIFT   16
0008 struct sysinfo {
0009     __kernel_long_t uptime;     /* Seconds since boot */
0010     __kernel_ulong_t loads[3];  /* 1, 5, and 15 minute load averages */
0011     __kernel_ulong_t totalram;  /* Total usable main memory size */
0012     __kernel_ulong_t freeram;   /* Available memory size */
0013     __kernel_ulong_t sharedram; /* Amount of shared memory */
0014     __kernel_ulong_t bufferram; /* Memory used by buffers */
0015     __kernel_ulong_t totalswap; /* Total swap space size */
0016     __kernel_ulong_t freeswap;  /* swap space still available */
0017     __u16 procs;            /* Number of current processes */
0018     __u16 pad;          /* Explicit padding for m68k */
0019     __kernel_ulong_t totalhigh; /* Total high memory size */
0020     __kernel_ulong_t freehigh;  /* Available high memory size */
0021     __u32 mem_unit;         /* Memory unit size in bytes */
0022     char _f[20-2*sizeof(__kernel_ulong_t)-sizeof(__u32)];   /* Padding: libc5 uses this.. */
0023 };
0024 
0025 #endif /* _LINUX_SYSINFO_H */