kernel.h

来自「自己做的交叉编译工具!gcc-3.4.5,glibc-2.3.6在ubuntu8」· C头文件 代码 · 共 41 行

H
41
字号
#ifndef _LINUX_KERNEL_H#define _LINUX_KERNEL_H/* * 'kernel.h' contains some often-used function prototypes etc */#define SI_LOAD_SHIFT	16struct sysinfo {	long uptime;			/* Seconds since boot */	unsigned long loads[3];		/* 1, 5, and 15 minute load averages */	unsigned long totalram;		/* Total usable main memory size */	unsigned long freeram;		/* Available memory size */	unsigned long sharedram;	/* Amount of shared memory */	unsigned long bufferram;	/* Memory used by buffers */	unsigned long totalswap;	/* Total swap space size */	unsigned long freeswap;		/* swap space still available */	unsigned short procs;		/* Number of current processes */	unsigned short pad;		/* explicit padding for m68k */	unsigned long totalhigh;	/* Total high memory size */	unsigned long freehigh;		/* Available high memory size */	unsigned int mem_unit;		/* Memory unit size in bytes */	char _f[20-2*sizeof(long)-sizeof(int)];	/* Padding: libc5 uses this.. */};extern void BUILD_BUG(void);#define BUILD_BUG_ON(condition) do { if (condition) BUILD_BUG(); } while(0)#ifdef CONFIG_SYSCTLextern int randomize_va_space;#else#define randomize_va_space 1#endif/* Trap pasters of __FUNCTION__ at compile-time */#if __GNUC__ > 2 || __GNUC_MINOR__ >= 95#define __FUNCTION__ (__func__)#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?