1 #ifndef _LINUX_KERNEL_H 2 #define _LINUX_KERNEL_H 3 4 /* 5 * 'kernel.h' contains some often-used function prototypes etc 6 */ 7 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) 8 #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) 9 10 11 #define SI_LOAD_SHIFT 16 12 struct sysinfo { 13 long uptime; /* Seconds since boot */ 14 unsigned long loads[3]; /* 1, 5, and 15 minute load averages */ 15 unsigned long totalram; /* Total usable main memory size */ 16 unsigned long freeram; /* Available memory size */ 17 unsigned long sharedram; /* Amount of shared memory */ 18 unsigned long bufferram; /* Memory used by buffers */ 19 unsigned long totalswap; /* Total swap space size */ 20 unsigned long freeswap; /* swap space still available */ 21 unsigned short procs; /* Number of current processes */ 22 unsigned short pad; /* explicit padding for m68k */ 23 unsigned long totalhigh; /* Total high memory size */ 24 unsigned long freehigh; /* Available high memory size */ 25 unsigned int mem_unit; /* Memory unit size in bytes */ 26 char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */ 27 }; 28 29 #endif 30