1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* kmod header */ #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