//函数原型
#define init_waitqueue_head(wq_head)
//参数
wq_head: struct wait_queue_head, 管理事件队列
//例程
init_waitqueue_head(&workload->shadow_ctx_status_wq);
//函数原型
#define wait_event(wq_head, condition)
#define wait_event_timeout(wq_head, condition, timeout) //支持超时
#define wait_event_interruptible(wq_head, condition) //支持中断唤醒
#define wait_event_interruptible_timeout(wq_head, condition, timeout)
#define wait_event_killable(wq_head, condition) //支持
#define wait_event_interruptible_exclusive(wq, condition)
//参数
wq_head: struct wait_queue_head, 管理事件队列
condition: int,条件必须为真,否则一直等待
timeout: int,等待超时时间
//例程
init_waitqueue_head(&workload->shadow_ctx_status_wq);
atomic_set(&workload->shadow_ctx_active, 0);
wait_event(workload->shadow_ctx_status_wq, !atomic_read(&workload->shadow_ctx_active)
//函数原型
#define wake_up(wq_head)
#define wake_up_interruptible(wq_head)
//参数
wq_head: struct wait_queue_head, 管理事件队列
//例程
wake_up(&workload->shadow_ctx_active)
直接开始下一节说明: I.MX6ULL设备树分析