sysdep-2.4.h
来自「盛博can驱动程序功能很全」· C头文件 代码 · 共 55 行
H
55 行
/*
* sysdep-2.4.h -- a trial to centralize changes between 2.2.14 and 2.4.x
*
*/
#ifndef _SYSDEP_24_H_
#define _SYSDEP_24_H_
#endif
#ifndef LINUX_VERSION_CODE
# include <linux/version.h>
#endif
#ifndef VERSION_CODE
# define VERSION_CODE(vers,rel,seq) ( ((vers)<<16) | ((rel)<<8) | (seq) )
#endif
/* only allow 2.4.x and 2.4.y */
#if LINUX_VERSION_CODE < VERSION_CODE(2,2,14)
# error "This kernel is too old: not supported by this file"
#endif
#if ((LINUX_VERSION_CODE > VERSION_CODE(2,3,0))&& \
(LINUX_VERSION_CODE < VERSION_CODE(2,4,0)))
# error "This kernel is not stable: not supported by this file"
#endif
#if LINUX_VERSION_CODE < VERSION_CODE(2,4,0)
# define LINUX_22
#else
# define LINUX_24
#endif
#if LINUX_VERSION_CODE < VERSION_CODE(2,4,0)
# define wait_queue_head_t struct wait_queue *
#endif
#if LINUX_VERSION_CODE > VERSION_CODE(2,4,0)
#include <linux/init.h>
#include <linux/poll.h>
#else
#include <linux/poll.h>
#define init_waitqueue_head(a) \
do { if (a!=0) (wait_queue_head_t )*a=NULL;} while (0)
#endif
#if LINUX_VERSION_CODE < VERSION_CODE(2,4,0)
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?