Home
last modified time | relevance | path

Searched refs:wait (Results 1 – 25 of 28) sorted by relevance

12

/kernel/sched/
A Dcompletion.c25 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_with_flags()
29 swake_up_locked(&x->wait, wake_flags); in complete_with_flags()
78 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_all()
80 swake_up_all_locked(&x->wait); in complete_all()
90 DECLARE_SWAITQUEUE(wait); in do_wait_for_common()
97 __prepare_to_swait(&x->wait, &wait); in do_wait_for_common()
99 raw_spin_unlock_irq(&x->wait.lock); in do_wait_for_common()
101 raw_spin_lock_irq(&x->wait.lock); in do_wait_for_common()
103 __finish_swait(&x->wait, &wait); in do_wait_for_common()
120 raw_spin_lock_irq(&x->wait.lock); in __wait_for_common()
[all …]
A Dswait.c87 wait->task = current; in __prepare_to_swait()
88 if (list_empty(&wait->task_list)) in __prepare_to_swait()
89 list_add_tail(&wait->task_list, &q->task_list); in __prepare_to_swait()
97 __prepare_to_swait(q, wait); in prepare_to_swait_exclusive()
114 list_del_init(&wait->task_list); in prepare_to_swait_event()
117 __prepare_to_swait(q, wait); in prepare_to_swait_event()
129 if (!list_empty(&wait->task_list)) in __finish_swait()
130 list_del_init(&wait->task_list); in __finish_swait()
133 void finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in finish_swait() argument
139 if (!list_empty_careful(&wait->task_list)) { in finish_swait()
[all …]
A Dwait.c332 int do_wait_intr(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr() argument
334 if (likely(list_empty(&wait->entry))) in do_wait_intr()
335 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr()
349 int do_wait_intr_irq(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr_irq() argument
351 if (likely(list_empty(&wait->entry))) in do_wait_intr_irq()
352 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr_irq()
A Dpsi.c1483 struct file *file, poll_table *wait) in psi_trigger_poll() argument
1496 kernfs_generic_poll(t->of, wait); in psi_trigger_poll()
1498 poll_wait(file, &t->event_wait, wait); in psi_trigger_poll()
1598 static __poll_t psi_fop_poll(struct file *file, poll_table *wait) in psi_fop_poll() argument
1602 return psi_trigger_poll(&seq->private, file, wait); in psi_fop_poll()
/kernel/
A Dumh.c118 if (!(sub_info->wait & UMH_WAIT_PROC)) in call_usermodehelper_exec_async()
162 if (sub_info->wait & UMH_WAIT_PROC) { in call_usermodehelper_exec_work()
211 DEFINE_WAIT(wait); in usermodehelper_read_trylock()
216 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_trylock()
234 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_trylock()
241 DEFINE_WAIT(wait); in usermodehelper_read_lock_wait()
261 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_lock_wait()
431 sub_info->wait = wait; in call_usermodehelper_exec()
437 if (wait & UMH_FREEZABLE) in call_usermodehelper_exec()
440 if (wait & UMH_KILLABLE) { in call_usermodehelper_exec()
[all …]
A Dsmp.c637 int wait) in smp_call_function_single() argument
672 if (!wait) { in smp_call_function_single()
686 if (wait) in smp_call_function_single()
755 smp_call_func_t func, void *info, int wait) in smp_call_function_any() argument
765 ret = smp_call_function_single(cpu, func, info, wait); in smp_call_function_any()
787 bool wait = scf_flags & SCF_WAIT; in smp_call_function_many_cond() local
830 if (wait) in smp_call_function_many_cond()
872 if (run_remote && wait) { in smp_call_function_many_cond()
899 smp_call_func_t func, void *info, bool wait) in smp_call_function_many() argument
1036 void *info, bool wait, const struct cpumask *mask) in on_each_cpu_cond_mask() argument
[all …]
A Dup.c13 int wait) in smp_call_function_single() argument
44 void *info, bool wait, const struct cpumask *mask) in on_each_cpu_cond_mask() argument
A Daudit.c1586 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()
1894 DECLARE_WAITQUEUE(wait, current); in audit_log_start()
1897 &wait); in audit_log_start()
1901 remove_wait_queue(&audit_backlog_wait, &wait); in audit_log_start()
A Dseccomp.c1499 static int recv_wake_function(wait_queue_entry_t *wait, unsigned int mode, int sync, in recv_wake_function() argument
1505 return autoremove_wake_function(wait, mode, sync, key); in recv_wake_function()
1510 DEFINE_WAIT_FUNC(wait, recv_wake_function); in recv_wait_event()
1520 ret = prepare_to_wait_event(&filter->wqh, &wait, TASK_INTERRUPTIBLE); in recv_wait_event()
1532 finish_wait(&filter->wqh, &wait); in recv_wait_event()
A Dscftorture.c234 static void scf_sel_add(unsigned long weight, int prim, bool wait) in scf_sel_add() argument
249 scfsp->scfs_wait = wait; in scf_sel_add()
A Drelay.c771 static __poll_t relay_file_poll(struct file *filp, poll_table *wait) in relay_file_poll() argument
780 poll_wait(filp, &buf->read_wait, wait); in relay_file_poll()
A Dresource.c1261 DECLARE_WAITQUEUE(wait, current); in __request_region_locked()
1294 add_wait_queue(&muxed_resource_wait, &wait); in __request_region_locked()
1298 remove_wait_queue(&muxed_resource_wait, &wait); in __request_region_locked()
A Dexit.c1588 static int child_wait_callback(wait_queue_entry_t *wait, unsigned mode, in child_wait_callback() argument
1591 struct wait_opts *wo = container_of(wait, struct wait_opts, in child_wait_callback()
1596 return default_wake_function(wait, mode, sync, key); in child_wait_callback()
A Dworkqueue.c3847 bool wait = false; in flush_workqueue_prep_pwqs() local
3878 wait = true; in flush_workqueue_prep_pwqs()
3895 return wait; in flush_workqueue_prep_pwqs()
/kernel/module/
A Dkmod.c71 static int call_modprobe(char *orig_module_name, int wait) in call_modprobe() argument
102 ret = call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe()
131 int __request_module(bool wait, const char *fmt, ...) in __request_module() argument
143 WARN_ON_ONCE(wait && current_is_async()); in __request_module()
165 trace_module_request(module_name, wait, _RET_IP_); in __request_module()
167 if (kmod_dup_request_exists_wait(module_name, wait, &dup_ret)) { in __request_module()
172 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); in __request_module()
A Ddups.c119 bool kmod_dup_request_exists_wait(char *module_name, bool wait, int *dup_ret) in kmod_dup_request_exists_wait() argument
152 if (!wait) { in kmod_dup_request_exists_wait()
188 if (!wait) { in kmod_dup_request_exists_wait()
A Dinternal.h244 bool kmod_dup_request_exists_wait(char *module_name, bool wait, int *dup_ret);
247 static inline bool kmod_dup_request_exists_wait(char *module_name, bool wait, int *dup_ret) in kmod_dup_request_exists_wait() argument
A DKconfig89 use that as the anchor to wait for duplicate module requests, since
93 non-wait request_module() call is synchronous and waits until modprobe
/kernel/locking/
A Dpercpu-rwsem.c145 bool wait; in percpu_rwsem_wait() local
152 wait = !__percpu_rwsem_trylock(sem, reader); in percpu_rwsem_wait()
153 if (wait) { in percpu_rwsem_wait()
159 while (wait) { in percpu_rwsem_wait()
/kernel/time/
A Dposix-clock.c58 static __poll_t posix_clock_poll(struct file *fp, poll_table *wait) in posix_clock_poll() argument
68 result = clk->ops.poll(pccontext, fp, wait); in posix_clock_poll()
/kernel/power/
A Dswap.c228 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()
299 wait_event(hb->wait, atomic_read(&hb->count) == 0); in hib_wait_io()
/kernel/rcu/
A DKconfig230 This option specifies the time to wait after the beginning of
A Dtasks.h140 .cbs_wait = __RCUWAIT_INITIALIZER(rt_name.wait), \
/kernel/printk/
A Dprintk.c923 static __poll_t devkmsg_poll(struct file *file, poll_table *wait) in devkmsg_poll() argument
929 poll_wait(file, &log_wait, wait); in devkmsg_poll()
/kernel/cgroup/
A Dcgroup.c3169 DEFINE_WAIT(wait); in cgroup_lock_and_drain_offline()
3175 prepare_to_wait(&dsct->offline_waitq, &wait, in cgroup_lock_and_drain_offline()
3180 finish_wait(&dsct->offline_waitq, &wait); in cgroup_lock_and_drain_offline()

Completed in 88 milliseconds

12