Lines Matching refs:wake_q
87 #include <linux/sched/wake_q.h>
237 * The wakeup is handled using the wake_q infrastructure. wake_q wakeups may
787 struct wake_q_head *wake_q)
796 wake_q_add_safe(wake_q, sleeper);
844 * @wake_q: lockless wake-queue head.
850 * The tasks that must be woken up are added to @wake_q. The return code
855 struct wake_q_head *wake_q)
874 wake_up_sem_queue_prepare(q, error, wake_q);
887 * @wake_q: lockless wake-queue head
894 int nsops, struct wake_q_head *wake_q)
907 semop_completed |= wake_const_ops(sma, num, wake_q);
918 semop_completed |= wake_const_ops(sma, i, wake_q);
927 semop_completed |= wake_const_ops(sma, -1, wake_q);
937 * @wake_q: lockless wake-queue head.
943 * The tasks that must be woken up are added to @wake_q. The return code
949 static int update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q)
986 do_smart_wakeup_zero(sma, q->sops, q->nsops, wake_q);
990 wake_up_sem_queue_prepare(q, error, wake_q);
1021 * @wake_q: lockless wake-queue head
1030 int otime, struct wake_q_head *wake_q)
1034 otime |= do_smart_wakeup_zero(sma, sops, nsops, wake_q);
1038 otime |= update_queue(sma, -1, wake_q);
1046 otime |= update_queue(sma, i, wake_q);
1060 sops[i].sem_num, wake_q);
1149 DEFINE_WAKE_Q(wake_q);
1165 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1170 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1176 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1180 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1190 wake_up_q(&wake_q);
1350 DEFINE_WAKE_Q(wake_q);
1398 do_smart_update(sma, NULL, 0, 0, &wake_q);
1401 wake_up_q(&wake_q);
1413 DEFINE_WAKE_Q(wake_q);
1525 do_smart_update(sma, NULL, 0, 0, &wake_q);
1563 wake_up_q(&wake_q);
2103 DEFINE_WAKE_Q(wake_q);
2110 do_smart_update(sma, sops, nsops, 1, &wake_q);
2116 wake_up_q(&wake_q);
2351 DEFINE_WAKE_Q(wake_q);
2438 do_smart_update(sma, NULL, 0, 1, &wake_q);
2441 wake_up_q(&wake_q);