Lines Matching +full:wait +full:- +full:state

1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Linux wait-bit related types and methods:
8 #include <linux/wait.h>
54 * wait_on_bit - wait for a bit to be cleared
57 * @mode: the task state to sleep in
59 * Wait for the given bit in an unsigned long or bitmap (see DECLARE_BITMAP())
63 * The process will wait on a waitqueue selected by hash from a shared
68 * call has ACQUIRE semantics, or %-EINTR if the process received a
83 * wait_on_bit_io - wait for a bit to be cleared
86 * @mode: the task state to sleep in
88 * Wait for the given bit in an unsigned long or bitmap (see DECLARE_BITMAP())
96 * call has ACQUIRE semantics, or %-EINTR if the process received a
111 * wait_on_bit_timeout - wait for a bit to be cleared or a timeout to elapse
114 * @mode: the task state to sleep in
117 * Wait for the given bit in an unsigned long or bitmap (see
126 * call has ACQUIRE semantics, or %-EINTR if the process received a
127 * signal and the mode permitted wake up on that signal, or %-EAGAIN if the
143 * wait_on_bit_action - wait for a bit to be cleared
147 * @mode: the task state to sleep in
149 * Wait for the given bit in an unsigned long or bitmap (see DECLARE_BITMAP())
158 * that call returned non-zero.
171 * wait_on_bit_lock - wait for a bit to be cleared, then set it
174 * @mode: the task state to sleep in
176 * Wait for the given bit in an unsigned long or bitmap (see
185 * test_and_clear_bit(), or %-EINTR if the process received a signal and
198 * wait_on_bit_lock_io - wait for a bit to be cleared, then set it
201 * @mode: the task state to sleep in
203 * Wait for the given bit in an unsigned long or bitmap (see
212 * set. Returns non-zero if a signal was delivered to the process and
225 * wait_on_bit_lock_action - wait for a bit to be cleared, then set it
229 * @mode: the task state to sleep in
237 * call returned non-zero.
253 #define ___wait_var_event(var, condition, state, exclusive, ret, cmd) \ argument
265 state); \
269 if (___wait_is_interruptible(state) && __int) { \
288 * wait_var_event - wait for a variable to be updated and notified
290 * @condition: the condition to wait for
292 * Wait for a @condition to be true, only re-checking when a wake up is
296 * The process will wait on a waitqueue selected by hash from a shared
301 * condition became true will be visible after the wait completes.
312 * wait_var_event_io - wait for a variable to be updated and notified
314 * @condition: the condition to wait for
316 * Wait for an IO related @condition to be true, only re-checking when a
321 * The process will wait on a waitqueue selected by hash from a shared
329 * condition became true will be visible after the wait completes.
344 * wait_var_event_killable - wait for a variable to be updated and notified
346 * @condition: the condition to wait for
348 * Wait for a @condition to be true or a fatal signal to be received,
349 * only re-checking the condition when a wake up is received for the given
354 * 0 if the condition became true, or %-ERESTARTSYS if a fatal signal
359 * condition became true will be visible after the wait completes.
376 * wait_var_event_timeout - wait for a variable to be updated or a timeout to expire
378 * @condition: the condition to wait for
379 * @timeout: maximum time to wait in jiffies
381 * Wait for a @condition to be true or a timeout to expire, only
382 * re-checking the condition when a wake up is received for the given
393 * condition became true will be visible after the wait completes.
409 * wait_var_event_killable - wait for a variable to be updated and notified
411 * @condition: the condition to wait for
413 * Wait for a @condition to be true or a signal to be received, only
414 * re-checking the condition when a wake up is received for the given
419 * the condition became true, or %-ERESTARTSYS if a signal was received.
423 * condition became true will be visible after the wait completes.
435 * wait_var_event_any_lock - wait for a variable to be updated under a lock
437 * @condition: condition to wait for
440 * @state: waiting state, %TASK_UNINTERRUPTIBLE etc.
442 * Wait for a condition which can only be reliably tested while holding
451 * dropped when schedule() is called to wait for a wake up, and will be
456 * Return %-ERESTARTSYS if a signal arrives which is allowed to interrupt
457 * the wait according to @state.
459 #define wait_var_event_any_lock(var, condition, lock, type, state) \ argument
463 __ret = ___wait_var_event(var, condition, state, 0, 0, \
471 * wait_var_event_spinlock - wait for a variable to be updated under a spinlock
473 * @condition: condition to wait for
476 * Wait for a condition which can only be reliably tested while holding
485 * dropped when schedule() is called to wait for a wake up, and will be
492 * wait_var_event_mutex - wait for a variable to be updated under a mutex
494 * @condition: condition to wait for
497 * Wait for a condition which can only be reliably tested while holding
506 * dropped when schedule() is called to wait for a wake up, and will be
513 * wake_up_var_protected - wake up waiters for a variable asserting that it is safe
529 * wake_up_var_locked - wake up waiters for a variable while holding a spinlock or mutex
541 * clear_and_wake_up_bit - clear a bit and wake up anyone waiting on that bit
559 * test_and_clear_wake_up_bit - clear a bit if it was set: wake up anyone waiting on that bit
581 * atomic_dec_and_wake_up - decrement an atomic_t and if zero, wake up waiters
602 * store_release_wake_up - update a variable and send a wake_up