File: kmod.h

package info (click to toggle)
kernel-source-2.2.22 2.2.22-1woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92,736 kB
  • ctags: 279,994
  • sloc: ansic: 1,710,947; asm: 60,329; makefile: 10,285; sh: 2,401; perl: 907; tcl: 570; lisp: 218; cpp: 186; awk: 133; sed: 72
file content (25 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
	kmod header
*/

#include <linux/config.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[];
#endif
#else
#include <linux/errno.h>

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