Home
last modified time | relevance | path

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

/kernel/sched/
Dcompletion.c32 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 …]
Dswait.c85 void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) in __prepare_to_swait() argument
87 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()
92 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_exclusive() argument
97 __prepare_to_swait(q, wait); in prepare_to_swait_exclusive()
103 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_event() argument
114 list_del_init(&wait->task_list); in prepare_to_swait_event()
117 __prepare_to_swait(q, wait); in prepare_to_swait_event()
126 void __finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in __finish_swait() argument
[all …]
Dwait.c334 int do_wait_intr(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr() argument
336 if (likely(list_empty(&wait->entry))) in do_wait_intr()
337 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr()
351 int do_wait_intr_irq(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr_irq() argument
353 if (likely(list_empty(&wait->entry))) in do_wait_intr_irq()
354 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr_irq()
Dpsi.c1284 struct file *file, poll_table *wait) in psi_trigger_poll() argument
1296 poll_wait(file, &t->event_wait, wait); in psi_trigger_poll()
1365 static __poll_t psi_fop_poll(struct file *file, poll_table *wait) in psi_fop_poll() argument
1369 return psi_trigger_poll(&seq->private, file, wait); in psi_fop_poll()
Dsched.h2775 void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait);
/kernel/
Dumh.c119 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
430 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; in call_usermodehelper_exec()
[all …]
Dsmp.c469 int wait) in smp_call_function_single() argument
502 if (!wait) { in smp_call_function_single()
516 if (wait) in smp_call_function_single()
584 smp_call_func_t func, void *info, int wait) in smp_call_function_any() argument
606 ret = smp_call_function_single(cpu, func, info, wait); in smp_call_function_any()
614 bool wait, smp_cond_func_t cond_func) in smp_call_function_many_cond() argument
653 smp_call_function_single(cpu, func, info, wait); in smp_call_function_many_cond()
674 if (wait) in smp_call_function_many_cond()
689 if (wait) { in smp_call_function_many_cond()
714 smp_call_func_t func, void *info, bool wait) in smp_call_function_many() argument
[all …]
Dup.c13 int wait) in smp_call_function_single() argument
39 void on_each_cpu(smp_call_func_t func, void *info, int wait) in on_each_cpu() argument
56 smp_call_func_t func, void *info, bool wait) in on_each_cpu_mask() argument
73 void *info, bool wait, const struct cpumask *mask) in on_each_cpu_cond_mask() argument
88 void *info, bool wait) in on_each_cpu_cond() argument
90 on_each_cpu_cond_mask(cond_func, func, info, wait, NULL); in on_each_cpu_cond()
Dkmod.c69 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()
Daudit.c1588 DECLARE_WAITQUEUE(wait, current); in audit_receive()
1593 add_wait_queue_exclusive(&audit_backlog_wait, &wait); in audit_receive()
1596 remove_wait_queue(&audit_backlog_wait, &wait); in audit_receive()
1898 DECLARE_WAITQUEUE(wait, current); in audit_log_start()
1901 &wait); in audit_log_start()
1905 remove_wait_queue(&audit_backlog_wait, &wait); in audit_log_start()
Dworkqueue.c2754 bool wait = false; in flush_workqueue_prep_pwqs() local
2773 wait = true; in flush_workqueue_prep_pwqs()
2788 return wait; in flush_workqueue_prep_pwqs()
3100 wait_queue_entry_t wait; member
3104 static int cwt_wakefn(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) in cwt_wakefn() argument
3106 struct cwt_wait *cwait = container_of(wait, struct cwt_wait, wait); in cwt_wakefn()
3110 return autoremove_wake_function(wait, mode, sync, key); in cwt_wakefn()
3140 init_wait(&cwait.wait); in __cancel_work_timer()
3141 cwait.wait.func = cwt_wakefn; in __cancel_work_timer()
3144 prepare_to_wait_exclusive(&cancel_waitq, &cwait.wait, in __cancel_work_timer()
[all …]
Dscftorture.c190 static void scf_sel_add(unsigned long weight, int prim, bool wait) in scf_sel_add() argument
205 scfsp->scfs_wait = wait; in scf_sel_add()
Dexit.c1482 static int child_wait_callback(wait_queue_entry_t *wait, unsigned mode, in child_wait_callback() argument
1485 struct wait_opts *wo = container_of(wait, struct wait_opts, in child_wait_callback()
1492 if ((wo->wo_flags & __WNOTHREAD) && wait->private != p->parent) in child_wait_callback()
1495 return default_wake_function(wait, mode, sync, key); in child_wait_callback()
Dresource.c1130 DECLARE_WAITQUEUE(wait, current); in __request_region()
1169 add_wait_queue(&muxed_resource_wait, &wait); in __request_region()
1173 remove_wait_queue(&muxed_resource_wait, &wait); in __request_region()
Drelay.c930 static __poll_t relay_file_poll(struct file *filp, poll_table *wait) in relay_file_poll() argument
939 poll_wait(filp, &buf->read_wait, wait); in relay_file_poll()
/kernel/locking/
Dpercpu-rwsem.c158 bool wait; in percpu_rwsem_wait() local
165 wait = !__percpu_rwsem_trylock(sem, reader); in percpu_rwsem_wait()
166 if (wait) { in percpu_rwsem_wait()
173 while (wait) { in percpu_rwsem_wait()
Drwsem.c1218 goto wait; in rwsem_down_write_slowpath()
1238 wait: in rwsem_down_write_slowpath()
/kernel/time/
Dposix-clock.c56 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/
Dswap.c227 wait_queue_head_t wait; member
235 init_waitqueue_head(&hb->wait); in hib_init_batch()
265 wake_up(&hb->wait); in hib_end_io()
308 wait_event(hb->wait, atomic_read(&hb->count) == 0); in hib_wait_io()
/kernel/trace/
Dring_buffer.c886 DEFINE_WAIT(wait); in ring_buffer_wait()
911 prepare_to_wait(&work->full_waiters, &wait, TASK_INTERRUPTIBLE); in ring_buffer_wait()
913 prepare_to_wait(&work->waiters, &wait, TASK_INTERRUPTIBLE); in ring_buffer_wait()
978 finish_wait(&work->full_waiters, &wait); in ring_buffer_wait()
980 finish_wait(&work->waiters, &wait); in ring_buffer_wait()
/kernel/rcu/
DKconfig209 This option specifies the time to wait after the beginning of
/kernel/printk/
Dprintk.c868 static __poll_t devkmsg_poll(struct file *file, poll_table *wait) in devkmsg_poll() argument
877 poll_wait(file, &log_wait, wait); in devkmsg_poll()
/kernel/cgroup/
Dcgroup.c3065 DEFINE_WAIT(wait); in cgroup_lock_and_drain_offline()
3071 prepare_to_wait(&dsct->offline_waitq, &wait, in cgroup_lock_and_drain_offline()
3076 finish_wait(&dsct->offline_waitq, &wait); in cgroup_lock_and_drain_offline()
/kernel/events/
Dcore.c5378 static __poll_t perf_poll(struct file *file, poll_table *wait) in perf_poll() argument
5384 poll_wait(file, &event->waitq, wait); in perf_poll()