Home | History | Annotate | Download | only in linux

Lines Matching refs:condition

155 #define __wait_event(wq, condition) 					\
161 if (condition) \
169 * wait_event - sleep until a condition gets true
171 * @condition: a C expression for the event to wait for
174 * @condition evaluates to true. The @condition is checked each time
178 * change the result of the wait condition.
180 #define wait_event(wq, condition) \
182 if (condition) \
184 __wait_event(wq, condition); \
187 #define __wait_event_timeout(wq, condition, ret) \
193 if (condition) \
203 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
205 * @condition: a C expression for the event to wait for
209 * @condition evaluates to true. The @condition is checked each time
213 * change the result of the wait condition.
216 * jiffies if the condition evaluated to true before the timeout elapsed.
218 #define wait_event_timeout(wq, condition, timeout) \
221 if (!(condition)) \
222 __wait_event_timeout(wq, condition, __ret); \
226 #define __wait_event_interruptible(wq, condition, ret) \
232 if (condition) \
245 * wait_event_interruptible - sleep until a condition gets true
247 * @condition: a C expression for the event to wait for
250 * @condition evaluates to true or a signal is received.
251 * The @condition is checked each time the waitqueue @wq is woken up.
254 * change the result of the wait condition.
257 * signal and 0 if @condition evaluated to true.
259 #define wait_event_interruptible(wq, condition) \
262 if (!(condition)) \
263 __wait_event_interruptible(wq, condition, __ret); \
267 #define __wait_event_interruptible_timeout(wq, condition, ret) \
273 if (condition) \
288 * wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses
290 * @condition: a C expression for the event to wait for
294 * @condition evaluates to true or a signal is received.
295 * The @condition is checked each time the waitqueue @wq is woken up.
298 * change the result of the wait condition.
302 * if the condition evaluated to true before the timeout elapsed.
304 #define wait_event_interruptible_timeout(wq, condition, timeout) \
307 if (!(condition)) \
308 __wait_event_interruptible_timeout(wq, condition, __ret); \
312 #define __wait_event_interruptible_exclusive(wq, condition, ret) \
319 if (condition) \
331 #define wait_event_interruptible_exclusive(wq, condition) \
334 if (!(condition)) \
335 __wait_event_interruptible_exclusive(wq, condition, __ret);\