wait.h

来自「pc卡在嵌入式linux中的自动mount」· C头文件 代码 · 共 19 行

H
19
字号
#ifndef _COMPAT_WAIT_H
#define _COMPAT_WAIT_H

#include <linux/version.h>
#include_next <linux/wait.h>

#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18))
#ifndef init_waitqueue_head
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,0,16))
#define init_waitqueue_head(p)  (*(p) = NULL)
#else
#define init_waitqueue_head(p)  init_waitqueue(p)
#endif
typedef struct wait_queue *wait_queue_head_t;
#endif
#endif

#endif /* _COMPAT_WAIT_H */

⌨️ 快捷键说明

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