#ifndef __ASM_PARAM_H #define __ASM_PARAM_H #ifdef __KERNEL__ # define HZ CONFIG_HZ /* Internal kernel timer frequency */ # define USER_HZ 100 /* User interfaces are in "ticks" */ # define CLOCKS_PER_SEC (USER_HZ) /* like times() */ #else # define HZ 100 #endif #define EXEC_PAGESIZE 4096 #ifndef NOGROUP #define NOGROUP (-1) #endif /* max length of hostname */ #define MAXHOSTNAMELEN 64 #endif
#include <asm-generic/param.h> 文件路径:/include/asm-generic/param.h #ifndef __ASM_GENERIC_PARAM_H #define __ASM_GENERIC_PARAM_H #ifndef HZ #define HZ 100 #endif #ifndef EXEC_PAGESIZE #define EXEC_PAGESIZE 4096 #endif #ifndef NOGROUP #define NOGROUP (-1) #endif #define MAXHOSTNAMELEN 64 /* max length of hostname */ #endif /* __ASM_GENERIC_PARAM_H */
#ifndef _ASM_ALPHA_PARAM_H #define _ASM_ALPHA_PARAM_H #ifdef __KERNEL__ #define HZ CONFIG_HZ #define USER_HZ HZ #else #define HZ 1024 #endif #define EXEC_PAGESIZE 8192 #ifndef NOGROUP #define NOGROUP (-1) #endif #define MAXHOSTNAMELEN 64 /* max length of hostname */ #ifdef __KERNEL__ # define CLOCKS_PER_SEC HZ /* frequency at which times() counts */ #endif #endif /* _ASM_ALPHA_PARAM_H */
原文地址:http://blog.csdn.net/liuruiqun/article/details/45950049