Lines Matching refs:wait

4  * Linux wait queue related types and methods
10 #include <uapi/linux/wait.h>
13 typedef int (*wait_queue_func_t)(wait_queue_t *wait, unsigned mode, int flags, void *key);
14 int default_wake_function(wait_queue_t *wait, unsigned mode, int flags, void *key);
33 wait_queue_t wait;
107 extern void add_wait_queue(wait_queue_head_t *q, wait_queue_t *wait);
108 extern void add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t *wait);
109 extern void remove_wait_queue(wait_queue_head_t *q, wait_queue_t *wait);
120 __add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t *wait)
122 wait->flags |= WQ_FLAG_EXCLUSIVE;
123 __add_wait_queue(q, wait);
133 __add_wait_queue_tail_exclusive(wait_queue_head_t *q, wait_queue_t *wait)
135 wait->flags |= WQ_FLAG_EXCLUSIVE;
136 __add_wait_queue_tail(q, wait);
249 * @wq: the waitqueue to wait on
250 * @condition: a C expression for the event to wait for
257 * change the result of the wait condition.
273 * @wq: the waitqueue to wait on
274 * @condition: a C expression for the event to wait for
282 * change the result of the wait condition.
304 * @wq: the waitqueue to wait on
305 * @condition: a C expression for the event to wait for
314 * change the result of the wait condition.
329 * @wq: the waitqueue to wait on
330 * @condition: a C expression for the event to wait for
337 * change the result of the wait condition.
357 * @wq: the waitqueue to wait on
358 * @condition: a C expression for the event to wait for
366 * change the result of the wait condition.
411 * @wq: the waitqueue to wait on
412 * @condition: a C expression for the event to wait for
420 * change the result of the wait condition.
436 * @wq: the waitqueue to wait on
437 * @condition: a C expression for the event to wait for
445 * change the result of the wait condition.
504 * @wq: the waitqueue to wait on
505 * @condition: a C expression for the event to wait for
520 * change the result of the wait condition.
531 * @wq: the waitqueue to wait on
532 * @condition: a C expression for the event to wait for
547 * change the result of the wait condition.
558 * @wq: the waitqueue to wait on
559 * @condition: a C expression for the event to wait for
573 * The process is put on the wait queue with an WQ_FLAG_EXCLUSIVE flag
578 * change the result of the wait condition.
589 * @wq: the waitqueue to wait on
590 * @condition: a C expression for the event to wait for
604 * The process is put on the wait queue with an WQ_FLAG_EXCLUSIVE flag
609 * change the result of the wait condition.
624 * @wq: the waitqueue to wait on
625 * @condition: a C expression for the event to wait for
632 * change the result of the wait condition.
658 * @wq: the waitqueue to wait on
659 * @condition: a C expression for the event to wait for
670 * change the result of the wait condition.
688 * @wq: the waitqueue to wait on
689 * @condition: a C expression for the event to wait for
698 * change the result of the wait condition.
722 * @wq: the waitqueue to wait on
723 * @condition: a C expression for the event to wait for
734 * change the result of the wait condition.
756 * @wq: the waitqueue to wait on
757 * @condition: a C expression for the event to wait for
766 * change the result of the wait condition.
795 * @wq: the waitqueue to wait on
796 * @condition: a C expression for the event to wait for
806 * change the result of the wait condition.
828 void prepare_to_wait(wait_queue_head_t *q, wait_queue_t *wait, int state);
829 void prepare_to_wait_exclusive(wait_queue_head_t *q, wait_queue_t *wait, int state);
830 long prepare_to_wait_event(wait_queue_head_t *q, wait_queue_t *wait, int state);
831 void finish_wait(wait_queue_head_t *q, wait_queue_t *wait);
832 void abort_exclusive_wait(wait_queue_head_t *q, wait_queue_t *wait, unsigned int mode, void *key);
833 int autoremove_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
834 int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
848 .wait = { \
852 LIST_HEAD_INIT((name).wait.task_list), \
856 #define init_wait(wait) \
858 (wait)->private = current; \
859 (wait)->func = autoremove_wake_function; \
860 INIT_LIST_HEAD(&(wait)->task_list); \
861 (wait)->flags = 0; \
871 * wait_on_bit - wait for a bit to be cleared
897 * wait_on_bit_io - wait for a bit to be cleared
902 * Use the standard hashed waitqueue table to wait for a bit
921 * wait_on_bit_action - wait for a bit to be cleared
927 * Use the standard hashed waitqueue table to wait for a bit
945 * wait_on_bit_lock - wait for a bit to be cleared, when wanting to set it
972 * wait_on_bit_lock_io - wait for a bit to be cleared, when wanting to set it
977 * Use the standard hashed waitqueue table to wait for a bit
995 * wait_on_bit_lock_action - wait for a bit to be cleared, when wanting to set it
1001 * Use the standard hashed waitqueue table to wait for a bit
1025 * Wait for an atomic_t to become 0. We abuse the bit-wait waitqueue table for