source: svn/trunk/newcon3bcm2_21bu/toolchain/mipsel-linux-uclibc/include/linux/kernel.h

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#ifndef _LINUX_KERNEL_H
2#define _LINUX_KERNEL_H
3
4/*
5 * 'kernel.h' contains some often-used function prototypes etc
6 */
7
8#define SI_LOAD_SHIFT   16
9struct sysinfo {
10        long uptime;                    /* Seconds since boot */
11        unsigned long loads[3];         /* 1, 5, and 15 minute load averages */
12        unsigned long totalram;         /* Total usable main memory size */
13        unsigned long freeram;          /* Available memory size */
14        unsigned long sharedram;        /* Amount of shared memory */
15        unsigned long bufferram;        /* Memory used by buffers */
16        unsigned long totalswap;        /* Total swap space size */
17        unsigned long freeswap;         /* swap space still available */
18        unsigned short procs;           /* Number of current processes */
19        unsigned short pad;             /* explicit padding for m68k */
20        unsigned long totalhigh;        /* Total high memory size */
21        unsigned long freehigh;         /* Available high memory size */
22        unsigned int mem_unit;          /* Memory unit size in bytes */
23        char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */
24};
25
26extern void BUILD_BUG(void);
27#define BUILD_BUG_ON(condition) do { if (condition) BUILD_BUG(); } while(0)
28
29#ifdef CONFIG_SYSCTL
30extern int randomize_va_space;
31#else
32#define randomize_va_space 1
33#endif
34
35/* Trap pasters of __FUNCTION__ at compile-time */
36#if __GNUC__ > 2 || __GNUC_MINOR__ >= 95
37#define __FUNCTION__ (__func__)
38#endif
39
40#endif
Note: See TracBrowser for help on using the repository browser.