Import 2.3.99pre9-1
[davej-history.git] / include / linux / kmod.h
blob4e880c93748745c201588d691c01b894c5ed45dc
1 /*
2 kmod header
3 */
5 #include <linux/config.h>
6 #include <linux/errno.h>
8 #ifdef CONFIG_KMOD
9 extern int request_module(const char * name);
10 extern int exec_usermodehelper(char *program_path, char *argv[], char *envp[]);
11 #else
12 static inline int request_module(const char * name) { return -ENOSYS; }
13 static inline int exec_usermodehelper(char *program_path, char *argv[], char *envp[])
15 return -EACCES;
17 #endif