|
Last change
on this file since 2 was
2,
checked in by phkim, 11 years ago
|
|
1.phkim
- revision copy newcon3sk r27
|
-
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 |
|---|
| 9 | struct 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 | |
|---|
| 26 | extern void BUILD_BUG(void); |
|---|
| 27 | #define BUILD_BUG_ON(condition) do { if (condition) BUILD_BUG(); } while(0) |
|---|
| 28 | |
|---|
| 29 | #ifdef CONFIG_SYSCTL |
|---|
| 30 | extern 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.