Home
last modified time | relevance | path

Searched refs:wake_q (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.4/kernel/locking/
Drwsem.c403 struct wake_q_head *wake_q) in rwsem_mark_wake() argument
426 wake_q_add(wake_q, waiter->task); in rwsem_mark_wake()
551 wake_q_add_safe(wake_q, tsk); in rwsem_mark_wake()
999 DEFINE_WAKE_Q(wake_q); in rwsem_down_read_slowpath()
1028 &wake_q); in rwsem_down_read_slowpath()
1030 wake_up_q(&wake_q); in rwsem_down_read_slowpath()
1082 rwsem_mark_wake(sem, RWSEM_WAKE_ANY, &wake_q); in rwsem_down_read_slowpath()
1085 wake_up_q(&wake_q); in rwsem_down_read_slowpath()
1146 DEFINE_WAKE_Q(wake_q); in rwsem_down_write_slowpath()
1194 : RWSEM_WAKE_ANY, &wake_q); in rwsem_down_write_slowpath()
[all …]
Drtmutex.c1017 static void mark_wakeup_next_waiter(struct wake_q_head *wake_q, in mark_wakeup_next_waiter() argument
1057 wake_q_add(wake_q, waiter->task); in mark_wakeup_next_waiter()
1339 struct wake_q_head *wake_q) in rt_mutex_slowunlock() argument
1393 mark_wakeup_next_waiter(wake_q, lock); in rt_mutex_slowunlock()
1445 void rt_mutex_postunlock(struct wake_q_head *wake_q) in rt_mutex_postunlock() argument
1447 wake_up_q(wake_q); in rt_mutex_postunlock()
1458 DEFINE_WAKE_Q(wake_q); in rt_mutex_fastunlock()
1463 if (slowfn(lock, &wake_q)) in rt_mutex_fastunlock()
1464 rt_mutex_postunlock(&wake_q); in rt_mutex_fastunlock()
1613 struct wake_q_head *wake_q) in __rt_mutex_futex_unlock() argument
[all …]
Drtmutex_common.h158 extern void rt_mutex_postunlock(struct wake_q_head *wake_q);
Dmutex.c1225 DEFINE_WAKE_Q(wake_q); in __mutex_unlock_slowpath()
1272 wake_q_add(&wake_q, next); in __mutex_unlock_slowpath()
1280 wake_up_q(&wake_q); in __mutex_unlock_slowpath()
/Linux-v5.4/ipc/
Dsem.c767 struct wake_q_head *wake_q) in wake_up_sem_queue_prepare() argument
769 wake_q_add(wake_q, q->sleeper); in wake_up_sem_queue_prepare()
836 struct wake_q_head *wake_q) in wake_const_ops() argument
855 wake_up_sem_queue_prepare(q, error, wake_q); in wake_const_ops()
875 int nsops, struct wake_q_head *wake_q) in do_smart_wakeup_zero() argument
888 semop_completed |= wake_const_ops(sma, num, wake_q); in do_smart_wakeup_zero()
899 semop_completed |= wake_const_ops(sma, i, wake_q); in do_smart_wakeup_zero()
908 semop_completed |= wake_const_ops(sma, -1, wake_q); in do_smart_wakeup_zero()
930 static int update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q) in update_queue() argument
967 do_smart_wakeup_zero(sma, q->sops, q->nsops, wake_q); in update_queue()
[all …]
Dmsg.c198 struct wake_q_head *wake_q, bool kill) in ss_wakeup() argument
230 wake_q_add(wake_q, mss->tsk); in ss_wakeup()
235 struct wake_q_head *wake_q) in expunge_all() argument
240 wake_q_add(wake_q, msr->r_tsk); in expunge_all()
257 DEFINE_WAKE_Q(wake_q); in freeque()
259 expunge_all(msq, -EIDRM, &wake_q); in freeque()
260 ss_wakeup(msq, &wake_q, true); in freeque()
263 wake_up_q(&wake_q); in freeque()
410 DEFINE_WAKE_Q(wake_q); in msgctl_down()
430 expunge_all(msq, -EAGAIN, &wake_q); in msgctl_down()
[all …]
Dmqueue.c924 static inline void pipelined_send(struct wake_q_head *wake_q, in pipelined_send() argument
931 wake_q_add(wake_q, receiver->task); in pipelined_send()
945 static inline void pipelined_receive(struct wake_q_head *wake_q, in pipelined_receive() argument
959 wake_q_add(wake_q, sender->task); in pipelined_receive()
976 DEFINE_WAKE_Q(wake_q); in do_mq_timedsend()
1058 pipelined_send(&wake_q, info, msg_ptr, receiver); in do_mq_timedsend()
1071 wake_up_q(&wake_q); in do_mq_timedsend()
1155 DEFINE_WAKE_Q(wake_q); in do_mq_timedreceive()
1163 pipelined_receive(&wake_q, info); in do_mq_timedreceive()
1165 wake_up_q(&wake_q); in do_mq_timedreceive()
/Linux-v5.4/kernel/
Dfutex.c1463 static void mark_wake_futex(struct wake_q_head *wake_q, struct futex_q *q) in mark_wake_futex() argument
1485 wake_q_add_safe(wake_q, p); in mark_wake_futex()
1496 DEFINE_WAKE_Q(wake_q); in wake_futex_pi()
1556 postunlock = __rt_mutex_futex_unlock(&pi_state->pi_mutex, &wake_q); in wake_futex_pi()
1562 rt_mutex_postunlock(&wake_q); in wake_futex_pi()
1601 DEFINE_WAKE_Q(wake_q); in futex_wake()
1629 mark_wake_futex(&wake_q, this); in futex_wake()
1636 wake_up_q(&wake_q); in futex_wake()
1702 DEFINE_WAKE_Q(wake_q); in futex_wake_op()
1754 mark_wake_futex(&wake_q, this); in futex_wake_op()
[all …]
Dfork.c929 tsk->wake_q.next = NULL; in dup_task_struct()
/Linux-v5.4/include/linux/
Dsched.h946 struct wake_q_node wake_q; member
/Linux-v5.4/kernel/sched/
Dcore.c415 struct wake_q_node *node = &task->wake_q; in __wake_q_add()
485 task = container_of(node, struct task_struct, wake_q); in wake_up_q()
489 task->wake_q.next = NULL; in wake_up_q()