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成神之路

版权声明:
作者:siwei
链接:https://www.techfm.club/p/18818.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>