Dr Andrew Scott G7VAV

My photo
 
April 2024
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12


kernel.h
01: #ifndef _LINUX_KERNEL_H
02: #define _LINUX_KERNEL_H
03: 
04: /*
05:  * 'kernel.h' contains some often-used function prototypes etc
06:  */
07: #define __ALIGN_KERNEL(x, a)            __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)
08: #define __ALIGN_KERNEL_MASK(x, mask)    (((x) + (mask)) & ~(mask))
09: 
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: 


for client 3.145.152.98
© Andrew Scott 2006 - 2024,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/