Lines Matching refs:wait

71 static int call_modprobe(char *module_name, int wait)  in call_modprobe()  argument
100 return call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe()
125 int __request_module(bool wait, const char *fmt, ...) in __request_module() argument
141 WARN_ON_ONCE(wait && current_is_async()); in __request_module()
182 trace_module_request(module_name, wait, _RET_IP_); in __request_module()
184 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); in __request_module()
262 if (!(sub_info->wait & UMH_WAIT_PROC)) in ____call_usermodehelper()
313 if (sub_info->wait & UMH_WAIT_PROC) in __call_usermodehelper()
357 DEFINE_WAIT(wait); in usermodehelper_read_trylock()
362 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_trylock()
380 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_trylock()
387 DEFINE_WAIT(wait); in usermodehelper_read_lock_wait()
394 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_lock_wait()
407 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_lock_wait()
537 int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) in call_usermodehelper_exec() argument
556 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; in call_usermodehelper_exec()
557 sub_info->wait = wait; in call_usermodehelper_exec()
560 if (wait == UMH_NO_WAIT) /* task has freed sub_info */ in call_usermodehelper_exec()
563 if (wait & UMH_KILLABLE) { in call_usermodehelper_exec()
598 int call_usermodehelper(char *path, char **argv, char **envp, int wait) in call_usermodehelper() argument
601 gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL; in call_usermodehelper()
608 return call_usermodehelper_exec(info, wait); in call_usermodehelper()