130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#ifndef _LINUX_SYSINFO_H
230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define _LINUX_SYSINFO_H
330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng
430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#include <linux/types.h>
530692c65c4174412c90e79489e98ab85c1a7412fBen Cheng
630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#define SI_LOAD_SHIFT	16
730692c65c4174412c90e79489e98ab85c1a7412fBen Chengstruct sysinfo {
830692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__kernel_long_t uptime;		/* Seconds since boot */
930692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__kernel_ulong_t loads[3];	/* 1, 5, and 15 minute load averages */
1030692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__kernel_ulong_t totalram;	/* Total usable main memory size */
1130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__kernel_ulong_t freeram;	/* Available memory size */
1230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__kernel_ulong_t sharedram;	/* Amount of shared memory */
1330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__kernel_ulong_t bufferram;	/* Memory used by buffers */
1430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__kernel_ulong_t totalswap;	/* Total swap space size */
1530692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__kernel_ulong_t freeswap;	/* swap space still available */
1630692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__u16 procs;		   	/* Number of current processes */
1730692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__u16 pad;		   	/* Explicit padding for m68k */
1830692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__kernel_ulong_t totalhigh;	/* Total high memory size */
1930692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__kernel_ulong_t freehigh;	/* Available high memory size */
2030692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	__u32 mem_unit;			/* Memory unit size in bytes */
2130692c65c4174412c90e79489e98ab85c1a7412fBen Cheng	char _f[20-2*sizeof(__kernel_ulong_t)-sizeof(__u32)];	/* Padding: libc5 uses this.. */
2230692c65c4174412c90e79489e98ab85c1a7412fBen Cheng};
2330692c65c4174412c90e79489e98ab85c1a7412fBen Cheng
2430692c65c4174412c90e79489e98ab85c1a7412fBen Cheng#endif /* _LINUX_SYSINFO_H */
25