1INIT_MODULE(2) Linux Programmer's Guide INIT_MODULE(2)
2
3
4
6 init_module - Initialize a loadable module entry
7
9 long sys_init_module (void *umod, unsigned long len,
10 const char *uargs);
11
12
14 init_module initializes a loadable module entry given by umod, which is
15 indicated by the module's init function. The len and uargs values are
16 sent to the load_module function, which is utilized by sys_init_module
17 to get information on the module. The uargs contain any user space ar‐
18 guments to apply to the module. The len value indicates the size of the
19 memory section the module loads into.
20
21
23 init_module returns 0 on success; otherwise, it returns one of the er‐
24 rors listed in the "Errors" section.
25
26
28 -EPERM The user must have administrator module modification capabili‐
29 ties.
30
31
32 -EINTR Only one module can be loaded at a time. This error is returned
33 if more than one module is attempting to be loaded.
34
35
37 delete_module(2)
38
39
41 Niki Rahimi
42
43
44
45Linux 2.6 2004-March-12 INIT_MODULE(2)