Lines Matching full:wait
11 #define __WNOTHREAD 0x20000000 /* Don't wait on children of other threads in this group */
12 #define __WALL 0x40000000 /* Wait on all children, regardless of type */
13 #define __WCLONE 0x80000000 /* Wait only on non-SIGCHLD children */
29 typedef int (*wait_queue_func_t)(wait_queue_t *wait, unsigned mode, int sync, void *key);
30 int default_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
47 wait_queue_t wait;
103 * Used to distinguish between sync and async io wait context:
104 * sync i/o typically specifies a NULL wait queue entry or a wait
106 * aio specifies a wait queue entry with an async notification
109 #define is_sync_wait(wait) (!(wait) || ((wait)->private))
111 extern void FASTCALL(add_wait_queue(wait_queue_head_t *q, wait_queue_t * wait));
112 extern void FASTCALL(add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t * wait));
113 extern void FASTCALL(remove_wait_queue(wait_queue_head_t *q, wait_queue_t * wait));
170 * @wq: the waitqueue to wait on
171 * @condition: a C expression for the event to wait for
178 * change the result of the wait condition.
204 * @wq: the waitqueue to wait on
205 * @condition: a C expression for the event to wait for
213 * change the result of the wait condition.
246 * @wq: the waitqueue to wait on
247 * @condition: a C expression for the event to wait for
254 * change the result of the wait condition.
289 * @wq: the waitqueue to wait on
290 * @condition: a C expression for the event to wait for
298 * change the result of the wait condition.
343 wait_queue_t * wait)
345 wait->flags |= WQ_FLAG_EXCLUSIVE;
346 __add_wait_queue_tail(q, wait);
353 wait_queue_t * wait)
355 __remove_wait_queue(q, wait);
374 wait_queue_t *wait, int state));
376 wait_queue_t *wait, int state));
377 void FASTCALL(finish_wait(wait_queue_head_t *q, wait_queue_t *wait));
378 int autoremove_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
379 int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
391 .wait = { \
395 LIST_HEAD_INIT((name).wait.task_list), \
399 #define init_wait(wait) \
401 (wait)->private = current; \
402 (wait)->func = autoremove_wake_function; \
403 INIT_LIST_HEAD(&(wait)->task_list); \
407 * wait_on_bit - wait for a bit to be cleared
429 * wait_on_bit_lock - wait for a bit to be cleared, when wanting to set it