/kernel/sched/ |
D | completion.c | 32 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete() 36 swake_up_locked(&x->wait); in complete() 37 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete() 63 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_all() 65 swake_up_all_locked(&x->wait); in complete_all() 66 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete_all() 75 DECLARE_SWAITQUEUE(wait); in do_wait_for_common() 82 __prepare_to_swait(&x->wait, &wait); in do_wait_for_common() 84 raw_spin_unlock_irq(&x->wait.lock); in do_wait_for_common() 86 raw_spin_lock_irq(&x->wait.lock); in do_wait_for_common() [all …]
|
D | swait.c | 84 void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) in __prepare_to_swait() argument 86 wait->task = current; in __prepare_to_swait() 87 if (list_empty(&wait->task_list)) in __prepare_to_swait() 88 list_add_tail(&wait->task_list, &q->task_list); in __prepare_to_swait() 91 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_exclusive() argument 96 __prepare_to_swait(q, wait); in prepare_to_swait_exclusive() 102 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_event() argument 113 list_del_init(&wait->task_list); in prepare_to_swait_event() 116 __prepare_to_swait(q, wait); in prepare_to_swait_event() 125 void __finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in __finish_swait() argument [all …]
|
D | wait.c | 352 int do_wait_intr(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr() argument 354 if (likely(list_empty(&wait->entry))) in do_wait_intr() 355 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr() 369 int do_wait_intr_irq(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr_irq() argument 371 if (likely(list_empty(&wait->entry))) in do_wait_intr_irq() 372 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr_irq()
|
D | psi.c | 1377 struct file *file, poll_table *wait) in psi_trigger_poll() argument 1389 poll_wait(file, &t->event_wait, wait); in psi_trigger_poll() 1489 static __poll_t psi_fop_poll(struct file *file, poll_table *wait) in psi_fop_poll() argument 1493 return psi_trigger_poll(&seq->private, file, wait); in psi_fop_poll()
|
D | sched.h | 3263 extern void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait);
|
/kernel/ |
D | umh.c | 122 if (!(sub_info->wait & UMH_WAIT_PROC)) in call_usermodehelper_exec_async() 166 if (sub_info->wait & UMH_WAIT_PROC) { in call_usermodehelper_exec_work() 215 DEFINE_WAIT(wait); in usermodehelper_read_trylock() 220 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_trylock() 238 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_trylock() 245 DEFINE_WAIT(wait); in usermodehelper_read_lock_wait() 252 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_lock_wait() 265 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_lock_wait() 405 int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) in call_usermodehelper_exec() argument 434 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; in call_usermodehelper_exec() [all …]
|
D | kmod.c | 69 static int call_modprobe(char *module_name, int wait) in call_modprobe() argument 98 return call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe() 124 int __request_module(bool wait, const char *fmt, ...) in __request_module() argument 136 WARN_ON_ONCE(wait && current_is_async()); in __request_module() 168 trace_module_request(module_name, wait, _RET_IP_); in __request_module() 170 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); in __request_module()
|
D | smp.c | 739 int wait) in smp_call_function_single() argument 772 if (!wait) { in smp_call_function_single() 786 if (wait) in smp_call_function_single() 856 smp_call_func_t func, void *info, int wait) in smp_call_function_any() argument 878 ret = smp_call_function_single(cpu, func, info, wait); in smp_call_function_any() 900 bool wait = scf_flags & SCF_WAIT; in smp_call_function_many_cond() local 950 if (wait) in smp_call_function_many_cond() 993 if (run_remote && wait) { in smp_call_function_many_cond() 1020 smp_call_func_t func, void *info, bool wait) in smp_call_function_many() argument 1022 smp_call_function_many_cond(mask, func, info, wait * SCF_WAIT, NULL); in smp_call_function_many() [all …]
|
D | up.c | 13 int wait) in smp_call_function_single() argument 44 void *info, bool wait, const struct cpumask *mask) in on_each_cpu_cond_mask() argument
|
D | audit.c | 1586 DECLARE_WAITQUEUE(wait, current); in audit_receive() 1591 add_wait_queue_exclusive(&audit_backlog_wait, &wait); in audit_receive() 1594 remove_wait_queue(&audit_backlog_wait, &wait); in audit_receive() 1896 DECLARE_WAITQUEUE(wait, current); in audit_log_start() 1899 &wait); in audit_log_start() 1903 remove_wait_queue(&audit_backlog_wait, &wait); in audit_log_start()
|
D | workqueue.c | 2763 bool wait = false; in flush_workqueue_prep_pwqs() local 2782 wait = true; in flush_workqueue_prep_pwqs() 2797 return wait; in flush_workqueue_prep_pwqs() 3109 wait_queue_entry_t wait; member 3113 static int cwt_wakefn(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) in cwt_wakefn() argument 3115 struct cwt_wait *cwait = container_of(wait, struct cwt_wait, wait); in cwt_wakefn() 3119 return autoremove_wake_function(wait, mode, sync, key); in cwt_wakefn() 3149 init_wait(&cwait.wait); in __cancel_work_timer() 3150 cwait.wait.func = cwt_wakefn; in __cancel_work_timer() 3153 prepare_to_wait_exclusive(&cancel_waitq, &cwait.wait, in __cancel_work_timer() [all …]
|
D | scftorture.c | 204 static void scf_sel_add(unsigned long weight, int prim, bool wait) in scf_sel_add() argument 219 scfsp->scfs_wait = wait; in scf_sel_add()
|
D | exit.c | 1524 static int child_wait_callback(wait_queue_entry_t *wait, unsigned mode, in child_wait_callback() argument 1527 struct wait_opts *wo = container_of(wait, struct wait_opts, in child_wait_callback() 1534 if ((wo->wo_flags & __WNOTHREAD) && wait->private != p->parent) in child_wait_callback() 1537 return default_wake_function(wait, mode, sync, key); in child_wait_callback()
|
D | resource.c | 1162 DECLARE_WAITQUEUE(wait, current); in __request_region_locked() 1194 add_wait_queue(&muxed_resource_wait, &wait); in __request_region_locked() 1198 remove_wait_queue(&muxed_resource_wait, &wait); in __request_region_locked()
|
D | relay.c | 842 static __poll_t relay_file_poll(struct file *filp, poll_table *wait) in relay_file_poll() argument 851 poll_wait(filp, &buf->read_wait, wait); in relay_file_poll()
|
/kernel/locking/ |
D | percpu-rwsem.c | 173 bool wait; in percpu_rwsem_wait() local 180 wait = !__percpu_rwsem_trylock(sem, reader); in percpu_rwsem_wait() 181 if (wait) { in percpu_rwsem_wait() 188 while (wait) { in percpu_rwsem_wait()
|
/kernel/time/ |
D | posix-clock.c | 56 static __poll_t posix_clock_poll(struct file *fp, poll_table *wait) in posix_clock_poll() argument 65 result = clk->ops.poll(clk, fp, wait); in posix_clock_poll()
|
/kernel/power/ |
D | swap.c | 231 wait_queue_head_t wait; member 239 init_waitqueue_head(&hb->wait); in hib_init_batch() 269 wake_up(&hb->wait); in hib_end_io() 310 wait_event(hb->wait, atomic_read(&hb->count) == 0); in hib_wait_io()
|
/kernel/trace/ |
D | ring_buffer.c | 944 DEFINE_WAIT(wait); in ring_buffer_wait() 969 prepare_to_wait(&work->full_waiters, &wait, TASK_INTERRUPTIBLE); in ring_buffer_wait() 971 prepare_to_wait(&work->waiters, &wait, TASK_INTERRUPTIBLE); in ring_buffer_wait() 1036 finish_wait(&work->full_waiters, &wait); in ring_buffer_wait() 1038 finish_wait(&work->waiters, &wait); in ring_buffer_wait()
|
/kernel/printk/ |
D | printk.c | 827 static __poll_t devkmsg_poll(struct file *file, poll_table *wait) in devkmsg_poll() argument 836 poll_wait(file, &log_wait, wait); in devkmsg_poll()
|
/kernel/rcu/ |
D | Kconfig | 218 This option specifies the time to wait after the beginning of
|
D | tasks.h | 124 .cbs_wait = __RCUWAIT_INITIALIZER(rt_name.wait), \
|
/kernel/cgroup/ |
D | cgroup.c | 3142 DEFINE_WAIT(wait); in cgroup_lock_and_drain_offline() 3148 prepare_to_wait(&dsct->offline_waitq, &wait, in cgroup_lock_and_drain_offline() 3153 finish_wait(&dsct->offline_waitq, &wait); in cgroup_lock_and_drain_offline()
|
/kernel/events/ |
D | core.c | 5510 static __poll_t perf_poll(struct file *file, poll_table *wait) in perf_poll() argument 5516 poll_wait(file, &event->waitq, wait); in perf_poll()
|