Go to the documentation of this file.
24 #include <linux/sched.h>
35 #define __SLEEP_COND(wq, cond, lock_cmd, unlock_cmd) \
37 DECLARE_WAITQUEUE(__wait, current); \
39 add_wait_queue(&wq, &__wait); \
41 set_current_state(TASK_UNINTERRUPTIBLE);\
48 __set_current_state(TASK_RUNNING); \
49 remove_wait_queue(&wq, &__wait); \