blob: 4e880c93748745c201588d691c01b894c5ed45dc (
plain)
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
static inline int request_module(const char * name) { return -ENOSYS; }
static inline int exec_usermodehelper(char *program_path, char *argv[], char *envp[])
{
return -EACCES;
}
#endif
|