/kernel/sched/ |
D | completion.c | 20 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_with_flags() 24 swake_up_locked(&x->wait, wake_flags); in complete_with_flags() 25 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete_with_flags() 73 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_all() 75 swake_up_all_locked(&x->wait); in complete_all() 76 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete_all() 85 DECLARE_SWAITQUEUE(wait); in do_wait_for_common() 92 __prepare_to_swait(&x->wait, &wait); in do_wait_for_common() 94 raw_spin_unlock_irq(&x->wait.lock); in do_wait_for_common() 96 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 | 357 int do_wait_intr(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr() argument 359 if (likely(list_empty(&wait->entry))) in do_wait_intr() 360 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr() 374 int do_wait_intr_irq(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr_irq() argument 376 if (likely(list_empty(&wait->entry))) in do_wait_intr_irq() 377 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr_irq()
|
D | psi.c | 1487 struct file *file, poll_table *wait) in psi_trigger_poll() argument 1500 kernfs_generic_poll(t->of, wait); in psi_trigger_poll() 1502 poll_wait(file, &t->event_wait, wait); in psi_trigger_poll() 1602 static __poll_t psi_fop_poll(struct file *file, poll_table *wait) in psi_fop_poll() argument 1606 return psi_trigger_poll(&seq->private, file, wait); in psi_fop_poll()
|
/kernel/ |
D | umh.c | 119 if (!(sub_info->wait & UMH_WAIT_PROC)) in call_usermodehelper_exec_async() 163 if (sub_info->wait & UMH_WAIT_PROC) { in call_usermodehelper_exec_work() 212 DEFINE_WAIT(wait); in usermodehelper_read_trylock() 217 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_trylock() 235 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_trylock() 242 DEFINE_WAIT(wait); in usermodehelper_read_lock_wait() 249 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_lock_wait() 262 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_lock_wait() 402 int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) in call_usermodehelper_exec() argument 431 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; in call_usermodehelper_exec() [all …]
|
D | smp.c | 602 int wait) in smp_call_function_single() argument 635 if (!wait) { in smp_call_function_single() 649 if (wait) in smp_call_function_single() 719 smp_call_func_t func, void *info, int wait) in smp_call_function_any() argument 741 ret = smp_call_function_single(cpu, func, info, wait); in smp_call_function_any() 763 bool wait = scf_flags & SCF_WAIT; in smp_call_function_many_cond() local 814 if (wait) in smp_call_function_many_cond() 850 if (run_remote && wait) { in smp_call_function_many_cond() 877 smp_call_func_t func, void *info, bool wait) in smp_call_function_many() argument 879 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 | 1585 DECLARE_WAITQUEUE(wait, current); in audit_receive() 1590 add_wait_queue_exclusive(&audit_backlog_wait, &wait); in audit_receive() 1593 remove_wait_queue(&audit_backlog_wait, &wait); in audit_receive() 1895 DECLARE_WAITQUEUE(wait, current); in audit_log_start() 1898 &wait); in audit_log_start() 1902 remove_wait_queue(&audit_backlog_wait, &wait); in audit_log_start()
|
D | workqueue.c | 3105 bool wait = false; in flush_workqueue_prep_pwqs() local 3124 wait = true; in flush_workqueue_prep_pwqs() 3139 return wait; in flush_workqueue_prep_pwqs() 3451 wait_queue_entry_t wait; member 3455 static int cwt_wakefn(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) in cwt_wakefn() argument 3457 struct cwt_wait *cwait = container_of(wait, struct cwt_wait, wait); in cwt_wakefn() 3461 return autoremove_wake_function(wait, mode, sync, key); in cwt_wakefn() 3491 init_wait(&cwait.wait); in __cancel_work_timer() 3492 cwait.wait.func = cwt_wakefn; in __cancel_work_timer() 3495 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 | seccomp.c | 1465 static int recv_wake_function(wait_queue_entry_t *wait, unsigned int mode, int sync, in recv_wake_function() argument 1471 return autoremove_wake_function(wait, mode, sync, key); in recv_wake_function() 1476 DEFINE_WAIT_FUNC(wait, recv_wake_function); in recv_wait_event() 1483 ret = prepare_to_wait_event(&filter->wqh, &wait, TASK_INTERRUPTIBLE); in recv_wait_event() 1493 finish_wait(&filter->wqh, &wait); in recv_wait_event()
|
D | exit.c | 1528 static int child_wait_callback(wait_queue_entry_t *wait, unsigned mode, in child_wait_callback() argument 1531 struct wait_opts *wo = container_of(wait, struct wait_opts, in child_wait_callback() 1538 if ((wo->wo_flags & __WNOTHREAD) && wait->private != p->parent) in child_wait_callback() 1541 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/module/ |
D | kmod.c | 72 static int call_modprobe(char *orig_module_name, int wait) in call_modprobe() argument 103 ret = call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe() 132 int __request_module(bool wait, const char *fmt, ...) in __request_module() argument 144 WARN_ON_ONCE(wait && current_is_async()); in __request_module() 166 trace_module_request(module_name, wait, _RET_IP_); in __request_module() 168 if (kmod_dup_request_exists_wait(module_name, wait, &dup_ret)) { in __request_module() 173 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); in __request_module()
|
D | dups.c | 120 bool kmod_dup_request_exists_wait(char *module_name, bool wait, int *dup_ret) in kmod_dup_request_exists_wait() argument 153 if (!wait) { in kmod_dup_request_exists_wait() 189 if (!wait) { in kmod_dup_request_exists_wait()
|
D | internal.h | 238 bool kmod_dup_request_exists_wait(char *module_name, bool wait, int *dup_ret); 241 static inline bool kmod_dup_request_exists_wait(char *module_name, bool wait, int *dup_ret) in kmod_dup_request_exists_wait() argument
|
D | Kconfig | 88 use that as the anchor to wait for duplicate module requests, since 92 non-wait request_module() call is synchronous and waits until modprobe
|
/kernel/locking/ |
D | percpu-rwsem.c | 159 bool wait; in percpu_rwsem_wait() local 166 wait = !__percpu_rwsem_trylock(sem, reader); in percpu_rwsem_wait() 167 if (wait) { in percpu_rwsem_wait() 174 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 | 228 wait_queue_head_t wait; member 236 init_waitqueue_head(&hb->wait); in hib_init_batch() 266 wake_up(&hb->wait); in hib_end_io() 307 wait_event(hb->wait, atomic_read(&hb->count) == 0); in hib_wait_io()
|
/kernel/printk/ |
D | printk.c | 894 static __poll_t devkmsg_poll(struct file *file, poll_table *wait) in devkmsg_poll() argument 900 poll_wait(file, &log_wait, wait); in devkmsg_poll()
|
/kernel/rcu/ |
D | Kconfig | 213 This option specifies the time to wait after the beginning of
|
D | tasks.h | 130 .cbs_wait = __RCUWAIT_INITIALIZER(rt_name.wait), \
|
/kernel/cgroup/ |
D | cgroup.c | 3078 DEFINE_WAIT(wait); in cgroup_lock_and_drain_offline() 3084 prepare_to_wait(&dsct->offline_waitq, &wait, in cgroup_lock_and_drain_offline() 3089 finish_wait(&dsct->offline_waitq, &wait); in cgroup_lock_and_drain_offline()
|