Go to the documentation of this file. 1 #ifndef __LINUX_KMOD_H__
2 #define __LINUX_KMOD_H__
23 #include <linux/stddef.h>
24 #include <linux/errno.h>
25 #include <linux/compiler.h>
27 #include <linux/sysctl.h>
29 #define KMOD_PATH_LEN 256
32 extern char modprobe_path[];
37 #define request_module(mod...) __request_module(true, mod)
38 #define request_module_nowait(mod...) __request_module(false, mod)
39 #define try_then_request_module(x, mod...) \
40 ((x) ?: (__request_module(true, mod), (x)))
42 static inline int request_module(
const char *name, ...) {
return -
ENOSYS; }
43 static inline int request_module_nowait(
const char *name, ...) {
return -
ENOSYS; }
44 #define try_then_request_module(x, mod...) (x)
52 #define UMH_WAIT_EXEC 1
53 #define UMH_WAIT_PROC 2
54 #define UMH_KILLABLE 4
75 call_usermodehelper(
char *path,
char **argv,
char **envp,
int wait)
94 static inline int usermodehelper_disable(
void)
99 static inline void usermodehelper_enable(
void)