Home
last modified time | relevance | path

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

/linux/kernel/locking/
H A Dww_mutex.h278 struct ww_acquire_ctx *ww_ctx, struct wake_q_head *wake_q) in __ww_mutex_die() argument
287 wake_q_add(wake_q, waiter->task); in __ww_mutex_die()
303 struct wake_q_head *wake_q) in __ww_mutex_wound() argument
335 wake_q_add(wake_q, owner); in __ww_mutex_wound()
357 struct wake_q_head *wake_q) in __ww_mutex_check_waiters() argument
369 if (__ww_mutex_die(lock, cur, ww_ctx, wake_q) || in __ww_mutex_check_waiters()
370 __ww_mutex_wound(lock, cur->ww_ctx, ww_ctx, wake_q)) in __ww_mutex_check_waiters()
382 DEFINE_WAKE_Q(wake_q); in ww_mutex_set_context_fastpath()
413 __ww_mutex_check_waiters(&lock->base, ctx, &wake_q); in ww_mutex_set_context_fastpath()
416 wake_up_q(&wake_q); in ww_mutex_set_context_fastpath()
[all …]
H A Drtmutex.c38 struct wake_q_head *wake_q) in __ww_mutex_add_waiter() argument
45 struct wake_q_head *wake_q) in __ww_mutex_check_waiters() argument
1207 struct wake_q_head *wake_q) in task_blocks_on_rt_mutex() argument
1251 res = __ww_mutex_add_waiter(waiter, rtm, ww_ctx, wake_q); in task_blocks_on_rt_mutex()
1298 wake_up_q(wake_q); in task_blocks_on_rt_mutex()
1299 wake_q_init(wake_q); in task_blocks_on_rt_mutex()
1614 struct wake_q_head *wake_q) in rt_mutex_slowlock_block() argument
1647 if (wake_q) { in rt_mutex_slowlock_block()
1648 wake_up_q(wake_q); in rt_mutex_slowlock_block()
1649 wake_q_init(wake_q); in rt_mutex_slowlock_block()
[all …]
H A Drwsem.c411 struct wake_q_head *wake_q) in rwsem_mark_wake() argument
434 wake_q_add(wake_q, waiter->task); in rwsem_mark_wake()
564 wake_q_add_safe(wake_q, tsk); in rwsem_mark_wake()
576 struct wake_q_head *wake_q) in rwsem_del_wake_waiter() argument
581 wake_q_init(wake_q); in rwsem_del_wake_waiter()
589 rwsem_mark_wake(sem, RWSEM_WAKE_ANY, wake_q); in rwsem_del_wake_waiter()
591 if (!wake_q_empty(wake_q)) in rwsem_del_wake_waiter()
592 wake_up_q(wake_q); in rwsem_del_wake_waiter()
974 struct wake_q_head *wake_q) in rwsem_cond_wake_waiter() argument
987 rwsem_mark_wake(sem, wake_type, wake_q); in rwsem_cond_wake_waiter()
[all …]
H A Drtmutex_api.c296 struct wake_q_head *wake_q) in __rt_mutex_start_proxy_lock() argument
307 RT_MUTEX_FULL_CHAINWALK, wake_q); in __rt_mutex_start_proxy_lock()
346 DEFINE_WAKE_Q(wake_q); in rt_mutex_start_proxy_lock()
349 ret = __rt_mutex_start_proxy_lock(lock, waiter, task, &wake_q); in rt_mutex_start_proxy_lock()
354 wake_up_q(&wake_q); in rt_mutex_start_proxy_lock()
/linux/ipc/
H A Dsem.c787 struct wake_q_head *wake_q) in wake_up_sem_queue_prepare() argument
796 wake_q_add_safe(wake_q, sleeper); in wake_up_sem_queue_prepare()
855 struct wake_q_head *wake_q) in wake_const_ops() argument
874 wake_up_sem_queue_prepare(q, error, wake_q); in wake_const_ops()
894 int nsops, struct wake_q_head *wake_q) in do_smart_wakeup_zero() argument
907 semop_completed |= wake_const_ops(sma, num, wake_q); in do_smart_wakeup_zero()
918 semop_completed |= wake_const_ops(sma, i, wake_q); in do_smart_wakeup_zero()
927 semop_completed |= wake_const_ops(sma, -1, wake_q); in do_smart_wakeup_zero()
949 static int update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q) in update_queue() argument
986 do_smart_wakeup_zero(sma, q->sops, q->nsops, wake_q); in update_queue()
[all …]
H A Dmsg.c213 struct wake_q_head *wake_q, bool kill) in ss_wakeup() argument
245 wake_q_add(wake_q, mss->tsk); in ss_wakeup()
250 struct wake_q_head *wake_q) in expunge_all() argument
261 wake_q_add_safe(wake_q, r_tsk); in expunge_all()
279 DEFINE_WAKE_Q(wake_q); in freeque()
281 expunge_all(msq, -EIDRM, &wake_q); in freeque()
282 ss_wakeup(msq, &wake_q, true); in freeque()
285 wake_up_q(&wake_q); in freeque()
432 DEFINE_WAKE_Q(wake_q); in msgctl_down()
452 expunge_all(msq, -EAGAIN, &wake_q); in msgctl_down()
[all …]
H A Dmqueue.c1018 static inline void __pipelined_op(struct wake_q_head *wake_q, in __pipelined_op() argument
1029 wake_q_add_safe(wake_q, task); in __pipelined_op()
1035 static inline void pipelined_send(struct wake_q_head *wake_q, in pipelined_send() argument
1041 __pipelined_op(wake_q, info, receiver); in pipelined_send()
1046 static inline void pipelined_receive(struct wake_q_head *wake_q, in pipelined_receive() argument
1059 __pipelined_op(wake_q, info, sender); in pipelined_receive()
1074 DEFINE_WAKE_Q(wake_q); in do_mq_timedsend()
1148 pipelined_send(&wake_q, info, msg_ptr, receiver); in do_mq_timedsend()
1160 wake_up_q(&wake_q); in do_mq_timedsend()
1234 DEFINE_WAKE_Q(wake_q); in do_mq_timedreceive()
[all …]
/linux/kernel/futex/
H A Dwaitwake.c134 void futex_wake_mark(struct wake_q_head *wake_q, struct futex_q *q) in futex_wake_mark() argument
149 wake_q_add_safe(wake_q, p); in futex_wake_mark()
160 DEFINE_WAKE_Q(wake_q); in futex_wake()
192 this->wake(&wake_q, this); in futex_wake()
199 wake_up_q(&wake_q); in futex_wake()
260 DEFINE_WAKE_Q(wake_q); in futex_wake_op()
307 this->wake(&wake_q, this); in futex_wake_op()
321 this->wake(&wake_q, this); in futex_wake_op()
331 wake_up_q(&wake_q); in futex_wake_op()
H A Drequeue.c376 DEFINE_WAKE_Q(wake_q); in futex_requeue()
598 this->wake(&wake_q, this); in futex_requeue()
678 wake_up_q(&wake_q); in futex_requeue()
H A Dfutex.h144 typedef void (futex_wake_fn)(struct wake_q_head *wake_q, struct futex_q *q);
226 extern void futex_wake_mark(struct wake_q_head *wake_q, struct futex_q *q);
/linux/include/linux/
H A Dsched.h1197 struct wake_q_node wake_q; member
/linux/kernel/sched/
H A Dcore.c987 struct wake_q_node *node = &task->wake_q; in __wake_q_add()
1057 task = container_of(node, struct task_struct, wake_q); in wake_up_q()
1060 task->wake_q.next = NULL; in wake_up_q()
/linux/kernel/
H A Dfork.c1164 tsk->wake_q.next = NULL; in dup_task_struct()