Linux内核下等待队列的使用
1、wait_queue的使用需要的头文件#include<linux/wait.h>typedef struct __wait_queue wait_queue_t;struct __wait_queue {unsigned int flags;#define WQ_FLAG_EXCLUSIVE 0x01void *private;wait_queue_func_t func;struct list_head task_list;};stru...