Lines Matching defs:wake_q
87 #include <linux/sched/wake_q.h>
234 * The wakeup is handled using the wake_q infrastructure. wake_q wakeups may
801 static inline void wake_up_sem_queue_prepare(struct sem_queue *q, int error, struct wake_q_head *wake_q)
810 wake_q_add_safe(wake_q, sleeper);
861 * @wake_q: lockless wake-queue head.
867 * The tasks that must be woken up are added to @wake_q. The return code
871 static int wake_const_ops(struct sem_array *sma, int semnum, struct wake_q_head *wake_q)
892 wake_up_sem_queue_prepare(q, error, wake_q);
906 * @wake_q: lockless wake-queue head
912 static int do_smart_wakeup_zero(struct sem_array *sma, struct sembuf *sops, int nsops, struct wake_q_head *wake_q)
925 semop_completed |= wake_const_ops(sma, num, wake_q);
936 semop_completed |= wake_const_ops(sma, i, wake_q);
945 semop_completed |= wake_const_ops(sma, -1, wake_q);
955 * @wake_q: lockless wake-queue head.
961 * The tasks that must be woken up are added to @wake_q. The return code
967 static int update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q)
1006 do_smart_wakeup_zero(sma, q->sops, q->nsops, wake_q);
1010 wake_up_sem_queue_prepare(q, error, wake_q);
1041 * @wake_q: lockless wake-queue head
1050 struct wake_q_head *wake_q)
1054 otime |= do_smart_wakeup_zero(sma, sops, nsops, wake_q);
1058 otime |= update_queue(sma, -1, wake_q);
1066 otime |= update_queue(sma, i, wake_q);
1080 otime |= update_queue(sma, sops[i].sem_num, wake_q);
1175 DEFINE_WAKE_Q(wake_q);
1193 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1199 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1206 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1211 wake_up_sem_queue_prepare(q, -EIDRM, &wake_q);
1221 wake_up_q(&wake_q);
1382 DEFINE_WAKE_Q(wake_q);
1429 do_smart_update(sma, NULL, 0, 0, &wake_q);
1432 wake_up_q(&wake_q);
1443 DEFINE_WAKE_Q(wake_q);
1558 do_smart_update(sma, NULL, 0, 0, &wake_q);
1597 wake_up_q(&wake_q);
2165 DEFINE_WAKE_Q(wake_q);
2172 do_smart_update(sma, sops, nsops, 1, &wake_q);
2179 wake_up_q(&wake_q);
2392 DEFINE_WAKE_Q(wake_q);
2480 do_smart_update(sma, NULL, 0, 1, &wake_q);
2483 wake_up_q(&wake_q);