diff options
Diffstat (limited to 'include/linux/kmod.h')
-rw-r--r-- | include/linux/kmod.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/kmod.h b/include/linux/kmod.h index 7392910d3..83abfcf92 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h @@ -3,10 +3,16 @@ */ #include <linux/config.h> +#include <linux/errno.h> #ifdef CONFIG_KMOD extern int request_module(const char * name); +extern int exec_usermodehelper(char *program_path, char *argv[], char *envp[]); #else #define request_module(x) do {} while(0) +extern inline int exec_usermodehelper(char *program_path, char *argv[], char *envp[]) +{ + return -EACCES; +} #endif |