DECLARE_WAIT_QUEUE_HEAD、wake_up_interruptible宏分析
DECLARE_WAIT_QUEUE_HEAD
//源码
struct list_head {
struct list_head *next, *prev;
};
struct __wait_queue_head {
spinlock_t lock;
struct list_head task_list;
};
typedef struct __wait_queue_head wait_queue_head_t;
#define DECLARE_WAIT_QUEUE_HEAD (name)
wait_queue_head_t name = __WAIT_QUEUE_HEAD_INITIALIZER(name)
#define __WAIT_QUEUE_HEAD_INITIALIZER (name) {
.lock
DECLARE_WAIT_QUEUE_HEAD、wake_up_interruptible宏分析最先出现在Python成神之路。
共有 0 条评论