Home
last modified time | relevance | path

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

/Linux-v5.10/kernel/locking/
Drwsem.c402 struct wake_q_head *wake_q) in rwsem_mark_wake() argument
425 wake_q_add(wake_q, waiter->task); in rwsem_mark_wake()
550 wake_q_add_safe(wake_q, tsk); in rwsem_mark_wake()
996 DEFINE_WAKE_Q(wake_q); in rwsem_down_read_slowpath()
1025 &wake_q); in rwsem_down_read_slowpath()
1027 wake_up_q(&wake_q); in rwsem_down_read_slowpath()
1079 rwsem_mark_wake(sem, RWSEM_WAKE_ANY, &wake_q); in rwsem_down_read_slowpath()
1082 wake_up_q(&wake_q); in rwsem_down_read_slowpath()
1143 DEFINE_WAKE_Q(wake_q); in rwsem_down_write_slowpath()
1191 : RWSEM_WAKE_ANY, &wake_q); in rwsem_down_write_slowpath()
[all …]
Drtmutex.c1015 static void mark_wakeup_next_waiter(struct wake_q_head *wake_q, in mark_wakeup_next_waiter() argument
1055 wake_q_add(wake_q, waiter->task); in mark_wakeup_next_waiter()
1337 struct wake_q_head *wake_q) in rt_mutex_slowunlock() argument
1391 mark_wakeup_next_waiter(wake_q, lock); in rt_mutex_slowunlock()
1443 void rt_mutex_postunlock(struct wake_q_head *wake_q) in rt_mutex_postunlock() argument
1445 wake_up_q(wake_q); in rt_mutex_postunlock()
1456 DEFINE_WAKE_Q(wake_q); in rt_mutex_fastunlock()
1461 if (slowfn(lock, &wake_q)) in rt_mutex_fastunlock()
1462 rt_mutex_postunlock(&wake_q); in rt_mutex_fastunlock()
1611 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.10/ipc/
Dsem.c785 struct wake_q_head *wake_q) in wake_up_sem_queue_prepare() argument
792 wake_q_add_safe(wake_q, q->sleeper); in wake_up_sem_queue_prepare()
851 struct wake_q_head *wake_q) in wake_const_ops() argument
870 wake_up_sem_queue_prepare(q, error, wake_q); in wake_const_ops()
890 int nsops, struct wake_q_head *wake_q) in do_smart_wakeup_zero() argument
903 semop_completed |= wake_const_ops(sma, num, wake_q); in do_smart_wakeup_zero()
914 semop_completed |= wake_const_ops(sma, i, wake_q); in do_smart_wakeup_zero()
923 semop_completed |= wake_const_ops(sma, -1, wake_q); in do_smart_wakeup_zero()
945 static int update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q) in update_queue() argument
982 do_smart_wakeup_zero(sma, q->sops, q->nsops, wake_q); in update_queue()
[all …]
Dmsg.c212 struct wake_q_head *wake_q, bool kill) in ss_wakeup() argument
244 wake_q_add(wake_q, mss->tsk); in ss_wakeup()
249 struct wake_q_head *wake_q) in expunge_all() argument
258 wake_q_add_safe(wake_q, msr->r_tsk); in expunge_all()
276 DEFINE_WAKE_Q(wake_q); in freeque()
278 expunge_all(msq, -EIDRM, &wake_q); in freeque()
279 ss_wakeup(msq, &wake_q, true); in freeque()
282 wake_up_q(&wake_q); in freeque()
429 DEFINE_WAKE_Q(wake_q); in msgctl_down()
449 expunge_all(msq, -EAGAIN, &wake_q); in msgctl_down()
[all …]
Dmqueue.c1002 static inline void __pipelined_op(struct wake_q_head *wake_q, in __pipelined_op() argument
1011 wake_q_add_safe(wake_q, this->task); in __pipelined_op()
1017 static inline void pipelined_send(struct wake_q_head *wake_q, in pipelined_send() argument
1023 __pipelined_op(wake_q, info, receiver); in pipelined_send()
1028 static inline void pipelined_receive(struct wake_q_head *wake_q, in pipelined_receive() argument
1041 __pipelined_op(wake_q, info, sender); in pipelined_receive()
1057 DEFINE_WAKE_Q(wake_q); in do_mq_timedsend()
1141 pipelined_send(&wake_q, info, msg_ptr, receiver); in do_mq_timedsend()
1154 wake_up_q(&wake_q); in do_mq_timedsend()
1240 DEFINE_WAKE_Q(wake_q); in do_mq_timedreceive()
[all …]
/Linux-v5.10/kernel/
Dfutex.c1450 static void mark_wake_futex(struct wake_q_head *wake_q, struct futex_q *q) in mark_wake_futex() argument
1472 wake_q_add_safe(wake_q, p); in mark_wake_futex()
1483 DEFINE_WAKE_Q(wake_q); in wake_futex_pi()
1545 postunlock = __rt_mutex_futex_unlock(&pi_state->pi_mutex, &wake_q); in wake_futex_pi()
1551 rt_mutex_postunlock(&wake_q); in wake_futex_pi()
1590 DEFINE_WAKE_Q(wake_q); in futex_wake()
1618 mark_wake_futex(&wake_q, this); in futex_wake()
1625 wake_up_q(&wake_q); in futex_wake()
1687 DEFINE_WAKE_Q(wake_q); in futex_wake_op()
1737 mark_wake_futex(&wake_q, this); in futex_wake_op()
[all …]
Dfork.c928 tsk->wake_q.next = NULL; in dup_task_struct()
/Linux-v5.10/include/linux/
Dsched.h1001 struct wake_q_node wake_q; member
/Linux-v5.10/kernel/sched/
Dcore.c517 struct wake_q_node *node = &task->wake_q; in __wake_q_add()
587 task = container_of(node, struct task_struct, wake_q); in wake_up_q()
591 task->wake_q.next = NULL; in wake_up_q()