summaryrefslogtreecommitdiffstats
path: root/include/linux/kmod.h
blob: bab12889830206be7439ba0f0ce9055f9a299641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
	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[]);
#ifdef CONFIG_HOTPLUG
extern char hotplug_path [];
extern int call_usermodehelper(char *path, char *argv[], char *envp[]);
#endif
#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