Home
last modified time | relevance | path

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

/kernel/linux/linux-5.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.h157 extern void rt_mutex_postunlock(struct wake_q_head *wake_q);
Dmutex.c1231 DEFINE_WAKE_Q(wake_q); in __mutex_unlock_slowpath()
1278 wake_q_add(&wake_q, next); in __mutex_unlock_slowpath()
1286 wake_up_q(&wake_q); in __mutex_unlock_slowpath()
/kernel/linux/linux-5.10/ipc/
Dsem.c785 struct wake_q_head *wake_q) in wake_up_sem_queue_prepare() argument
794 wake_q_add_safe(wake_q, sleeper); in wake_up_sem_queue_prepare()
853 struct wake_q_head *wake_q) in wake_const_ops() argument
872 wake_up_sem_queue_prepare(q, error, wake_q); in wake_const_ops()
892 int nsops, struct wake_q_head *wake_q) in do_smart_wakeup_zero() argument
905 semop_completed |= wake_const_ops(sma, num, wake_q); in do_smart_wakeup_zero()
916 semop_completed |= wake_const_ops(sma, i, wake_q); in do_smart_wakeup_zero()
925 semop_completed |= wake_const_ops(sma, -1, wake_q); in do_smart_wakeup_zero()
947 static int update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q) in update_queue() argument
984 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
260 wake_q_add_safe(wake_q, r_tsk); in expunge_all()
278 DEFINE_WAKE_Q(wake_q); in freeque()
280 expunge_all(msq, -EIDRM, &wake_q); in freeque()
281 ss_wakeup(msq, &wake_q, true); in freeque()
284 wake_up_q(&wake_q); in freeque()
431 DEFINE_WAKE_Q(wake_q); in msgctl_down()
451 expunge_all(msq, -EAGAIN, &wake_q); in msgctl_down()
[all …]
Dmqueue.c1016 static inline void __pipelined_op(struct wake_q_head *wake_q, in __pipelined_op() argument
1027 wake_q_add_safe(wake_q, task); in __pipelined_op()
1033 static inline void pipelined_send(struct wake_q_head *wake_q, in pipelined_send() argument
1039 __pipelined_op(wake_q, info, receiver); in pipelined_send()
1044 static inline void pipelined_receive(struct wake_q_head *wake_q, in pipelined_receive() argument
1057 __pipelined_op(wake_q, info, sender); in pipelined_receive()
1073 DEFINE_WAKE_Q(wake_q); in do_mq_timedsend()
1157 pipelined_send(&wake_q, info, msg_ptr, receiver); in do_mq_timedsend()
1170 wake_up_q(&wake_q); in do_mq_timedsend()
1256 DEFINE_WAKE_Q(wake_q); in do_mq_timedreceive()
[all …]
/kernel/linux/linux-5.10/kernel/futex/
Dcore.c1467 static void mark_wake_futex(struct wake_q_head *wake_q, struct futex_q *q) in mark_wake_futex() argument
1489 wake_q_add_safe(wake_q, p); in mark_wake_futex()
1500 DEFINE_WAKE_Q(wake_q); in wake_futex_pi()
1550 postunlock = __rt_mutex_futex_unlock(&pi_state->pi_mutex, &wake_q); in wake_futex_pi()
1557 rt_mutex_postunlock(&wake_q); in wake_futex_pi()
1596 DEFINE_WAKE_Q(wake_q); in futex_wake()
1624 mark_wake_futex(&wake_q, this); in futex_wake()
1631 wake_up_q(&wake_q); in futex_wake()
1693 DEFINE_WAKE_Q(wake_q); in futex_wake_op()
1743 mark_wake_futex(&wake_q, this); in futex_wake_op()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dsched.h1147 struct wake_q_node wake_q; member
/kernel/linux/linux-5.10/kernel/sched/
Dcore.c524 struct wake_q_node *node = &task->wake_q; in __wake_q_add()
594 task = container_of(node, struct task_struct, wake_q); in wake_up_q()
598 task->wake_q.next = NULL; in wake_up_q()
/kernel/linux/patches/linux-5.10/yangfan_patch/
Dinclude.patch2546 diff --git a/include/linux/sched/wake_q.h b/include/linux/sched/wake_q.h
2548 --- a/include/linux/sched/wake_q.h
2549 +++ b/include/linux/sched/wake_q.h
/kernel/linux/linux-5.10/kernel/
Dfork.c941 tsk->wake_q.next = NULL; in dup_task_struct()