Lines Matching refs:wait
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
140 WARN_ON_ONCE(wait && current_is_async()); in __request_module()
181 trace_module_request(module_name, wait, _RET_IP_); in __request_module()
183 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); in __request_module()
261 if (!(sub_info->wait & UMH_WAIT_PROC)) in call_usermodehelper_exec_async()
326 if (sub_info->wait & UMH_WAIT_PROC) { in call_usermodehelper_exec_work()
375 DEFINE_WAIT(wait); in usermodehelper_read_trylock()
380 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_trylock()
398 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_trylock()
405 DEFINE_WAIT(wait); in usermodehelper_read_lock_wait()
412 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_lock_wait()
425 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_lock_wait()
555 int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) in call_usermodehelper_exec() argument
574 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; in call_usermodehelper_exec()
575 sub_info->wait = wait; in call_usermodehelper_exec()
578 if (wait == UMH_NO_WAIT) /* task has freed sub_info */ in call_usermodehelper_exec()
581 if (wait & UMH_KILLABLE) { in call_usermodehelper_exec()
616 int call_usermodehelper(char *path, char **argv, char **envp, int wait) in call_usermodehelper() argument
619 gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL; in call_usermodehelper()
626 return call_usermodehelper_exec(info, wait); in call_usermodehelper()