Lines Matching full:wait
121 if (!(sub_info->wait & UMH_WAIT_PROC)) in call_usermodehelper_exec_async()
165 if (sub_info->wait & UMH_WAIT_PROC) { in call_usermodehelper_exec_work()
195 * Wait queue head used by usermodehelper_disable() to wait for all running
201 * Used by usermodehelper_read_lock_wait() to wait for usermodehelper_disabled
207 * Time to wait for running_helpers to become zero before the setting of
214 DEFINE_WAIT(wait); in usermodehelper_read_trylock()
219 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_trylock()
237 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_trylock()
244 DEFINE_WAIT(wait); in usermodehelper_read_lock_wait()
251 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_lock_wait()
264 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_lock_wait()
294 * Set usermodehelper_disabled to @depth and wait for running helpers to exit.
390 * @wait: wait for the application to finish and return status.
391 * when UMH_NO_WAIT don't wait at all, but you get no useful error back
396 * asynchronously if wait is not set, and runs as a child of system workqueues.
401 * UMH_WAIT_* wait modes as STATIC_USERMODEHELPER_PATH="" turns all helpers
404 int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) in call_usermodehelper_exec() argument
432 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; in call_usermodehelper_exec()
433 sub_info->wait = wait; in call_usermodehelper_exec()
436 if (wait == UMH_NO_WAIT) /* task has freed sub_info */ in call_usermodehelper_exec()
439 if (wait & UMH_KILLABLE) { in call_usermodehelper_exec()
466 * @wait: wait for the application to finish and return status.
467 * when UMH_NO_WAIT don't wait at all, but you get no useful error back
474 int call_usermodehelper(const char *path, char **argv, char **envp, int wait) in call_usermodehelper() argument
477 gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL; in call_usermodehelper()
484 return call_usermodehelper_exec(info, wait); in call_usermodehelper()