/kernel/sched/ |
D | completion.c | 32 spin_lock_irqsave(&x->wait.lock, flags); in complete() 36 __wake_up_locked(&x->wait, TASK_NORMAL, 1); in complete() 37 spin_unlock_irqrestore(&x->wait.lock, flags); in complete() 61 spin_lock_irqsave(&x->wait.lock, flags); in complete_all() 63 __wake_up_locked(&x->wait, TASK_NORMAL, 0); in complete_all() 64 spin_unlock_irqrestore(&x->wait.lock, flags); in complete_all() 73 DECLARE_WAITQUEUE(wait, current); in do_wait_for_common() 75 __add_wait_queue_entry_tail_exclusive(&x->wait, &wait); in do_wait_for_common() 82 spin_unlock_irq(&x->wait.lock); in do_wait_for_common() 84 spin_lock_irq(&x->wait.lock); in do_wait_for_common() [all …]
|
D | swait.c | 72 static void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) in __prepare_to_swait() argument 74 wait->task = current; in __prepare_to_swait() 75 if (list_empty(&wait->task_list)) in __prepare_to_swait() 76 list_add_tail(&wait->task_list, &q->task_list); in __prepare_to_swait() 79 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_exclusive() argument 84 __prepare_to_swait(q, wait); in prepare_to_swait_exclusive() 90 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_event() argument 101 list_del_init(&wait->task_list); in prepare_to_swait_event() 104 __prepare_to_swait(q, wait); in prepare_to_swait_event() 113 void __finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in __finish_swait() argument [all …]
|
D | wait.c | 301 int do_wait_intr(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr() argument 303 if (likely(list_empty(&wait->entry))) in do_wait_intr() 304 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr() 318 int do_wait_intr_irq(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr_irq() argument 320 if (likely(list_empty(&wait->entry))) in do_wait_intr_irq() 321 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr_irq()
|
D | psi.c | 1162 struct file *file, poll_table *wait) in psi_trigger_poll() argument 1181 poll_wait(file, &t->event_wait, wait); in psi_trigger_poll() 1239 static __poll_t psi_fop_poll(struct file *file, poll_table *wait) in psi_fop_poll() argument 1243 return psi_trigger_poll(&seq->private, file, wait); in psi_fop_poll()
|
/kernel/ |
D | smp.c | 270 int wait) in smp_call_function_single() argument 303 if (!wait) { in smp_call_function_single() 310 if (wait) in smp_call_function_single() 370 smp_call_func_t func, void *info, int wait) in smp_call_function_any() argument 392 ret = smp_call_function_single(cpu, func, info, wait); in smp_call_function_any() 413 smp_call_func_t func, void *info, bool wait) in smp_call_function_many() argument 451 smp_call_function_single(cpu, func, info, wait); in smp_call_function_many() 469 if (wait) in smp_call_function_many() 480 if (wait) { in smp_call_function_many() 506 void smp_call_function(smp_call_func_t func, void *info, int wait) in smp_call_function() argument [all …]
|
D | umh.c | 121 if (!(sub_info->wait & UMH_WAIT_PROC)) in call_usermodehelper_exec_async() 186 if (sub_info->wait & UMH_WAIT_PROC) { in call_usermodehelper_exec_work() 235 DEFINE_WAIT(wait); in usermodehelper_read_trylock() 240 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_trylock() 258 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_trylock() 265 DEFINE_WAIT(wait); in usermodehelper_read_lock_wait() 272 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_lock_wait() 285 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_lock_wait() 548 int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) in call_usermodehelper_exec() argument 576 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; in call_usermodehelper_exec() [all …]
|
D | up.c | 13 int wait) in smp_call_function_single() argument 38 void on_each_cpu(smp_call_func_t func, void *info, int wait) in on_each_cpu() argument 55 smp_call_func_t func, void *info, bool wait) in on_each_cpu_mask() argument 72 smp_call_func_t func, void *info, bool wait, in on_each_cpu_cond_mask() argument 88 smp_call_func_t func, void *info, bool wait, in on_each_cpu_cond() argument 91 on_each_cpu_cond_mask(cond_func, func, info, wait, gfp_flags, NULL); in on_each_cpu_cond()
|
D | kmod.c | 70 static int call_modprobe(char *module_name, int wait) in call_modprobe() argument 99 return call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe() 125 int __request_module(bool wait, const char *fmt, ...) in __request_module() argument 137 WARN_ON_ONCE(wait && current_is_async()); in __request_module() 169 trace_module_request(module_name, wait, _RET_IP_); in __request_module() 171 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); in __request_module()
|
D | workqueue.c | 2725 bool wait = false; in flush_workqueue_prep_pwqs() local 2744 wait = true; in flush_workqueue_prep_pwqs() 2759 return wait; in flush_workqueue_prep_pwqs() 3073 wait_queue_entry_t wait; member 3077 static int cwt_wakefn(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) in cwt_wakefn() argument 3079 struct cwt_wait *cwait = container_of(wait, struct cwt_wait, wait); in cwt_wakefn() 3083 return autoremove_wake_function(wait, mode, sync, key); in cwt_wakefn() 3113 init_wait(&cwait.wait); in __cancel_work_timer() 3114 cwait.wait.func = cwt_wakefn; in __cancel_work_timer() 3117 prepare_to_wait_exclusive(&cancel_waitq, &cwait.wait, in __cancel_work_timer() [all …]
|
D | exit.c | 1397 static int child_wait_callback(wait_queue_entry_t *wait, unsigned mode, in child_wait_callback() argument 1400 struct wait_opts *wo = container_of(wait, struct wait_opts, in child_wait_callback() 1407 if ((wo->wo_flags & __WNOTHREAD) && wait->private != p->parent) in child_wait_callback() 1410 return default_wake_function(wait, mode, sync, key); in child_wait_callback()
|
D | resource.c | 1127 DECLARE_WAITQUEUE(wait, current); in __request_region() 1165 add_wait_queue(&muxed_resource_wait, &wait); in __request_region() 1169 remove_wait_queue(&muxed_resource_wait, &wait); in __request_region()
|
D | audit.c | 1775 DECLARE_WAITQUEUE(wait, current); in audit_log_start() 1778 &wait); in audit_log_start() 1781 remove_wait_queue(&audit_backlog_wait, &wait); in audit_log_start()
|
D | relay.c | 924 static __poll_t relay_file_poll(struct file *filp, poll_table *wait) in relay_file_poll() argument 933 poll_wait(filp, &buf->read_wait, wait); in relay_file_poll()
|
/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 | 227 wait_queue_head_t wait; member 234 init_waitqueue_head(&hb->wait); in hib_init_batch() 258 wake_up(&hb->wait); in hib_end_io() 297 wait_event(hb->wait, atomic_read(&hb->count) == 0); in hib_wait_io()
|
/kernel/locking/ |
D | rwsem.c | 1190 goto wait; in rwsem_down_write_slowpath() 1210 wait: in rwsem_down_write_slowpath()
|
/kernel/trace/ |
D | ring_buffer.c | 579 DEFINE_WAIT(wait); in ring_buffer_wait() 602 prepare_to_wait(&work->full_waiters, &wait, TASK_INTERRUPTIBLE); in ring_buffer_wait() 604 prepare_to_wait(&work->waiters, &wait, TASK_INTERRUPTIBLE); in ring_buffer_wait() 666 finish_wait(&work->full_waiters, &wait); in ring_buffer_wait() 668 finish_wait(&work->waiters, &wait); in ring_buffer_wait()
|
/kernel/rcu/ |
D | Kconfig | 181 This option specifies the time to wait after the beginning of
|
/kernel/printk/ |
D | printk.c | 972 static __poll_t devkmsg_poll(struct file *file, poll_table *wait) in devkmsg_poll() argument 980 poll_wait(file, &log_wait, wait); in devkmsg_poll()
|
/kernel/cgroup/ |
D | cgroup.c | 2998 DEFINE_WAIT(wait); in cgroup_lock_and_drain_offline() 3004 prepare_to_wait(&dsct->offline_waitq, &wait, in cgroup_lock_and_drain_offline() 3009 finish_wait(&dsct->offline_waitq, &wait); in cgroup_lock_and_drain_offline()
|
/kernel/events/ |
D | core.c | 5009 static __poll_t perf_poll(struct file *file, poll_table *wait) in perf_poll() argument 5015 poll_wait(file, &event->waitq, wait); in perf_poll()
|