Lines Matching full:wait
3 * <linux/swait.h> (simple wait queues ) implementation:
85 void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) in __prepare_to_swait() argument
87 wait->task = current; in __prepare_to_swait()
88 if (list_empty(&wait->task_list)) in __prepare_to_swait()
89 list_add_tail(&wait->task_list, &q->task_list); in __prepare_to_swait()
92 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_exclusive() argument
97 __prepare_to_swait(q, wait); in prepare_to_swait_exclusive()
103 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_event() argument
114 list_del_init(&wait->task_list); in prepare_to_swait_event()
117 __prepare_to_swait(q, wait); in prepare_to_swait_event()
126 void __finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in __finish_swait() argument
129 if (!list_empty(&wait->task_list)) in __finish_swait()
130 list_del_init(&wait->task_list); in __finish_swait()
133 void finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in finish_swait() argument
139 if (!list_empty_careful(&wait->task_list)) { in finish_swait()
141 list_del_init(&wait->task_list); in finish_swait()