1DELETE_MODULE(2)           Linux Programmer's Manual          DELETE_MODULE(2)
2
3
4

NAME

6       delete_module - delete a loadable module entry
7

SYNOPSIS

9       #include <linux/module.h>
10
11       int delete_module(const char *name);
12

DESCRIPTION

14       delete_module() attempts to remove an unused loadable module entry.  If
15       name is NULL, all unused modules marked  auto-clean  will  be  removed.
16       This system call requires privilege.
17

RETURN VALUE

19       On  success,  zero  is returned.  On error, -1 is returned and errno is
20       set appropriately.
21

ERRORS

23       EBUSY  The module is in use.
24
25       EFAULT name is outside the program's accessible address space.
26
27       EINVAL name was an empty string.
28
29       ENOENT No module by that name exists.
30
31       EPERM  The caller was not privileged (did not have  the  CAP_SYS_MODULE
32              capability).
33

CONFORMING TO

35       delete_module() is Linux-specific.
36

SEE ALSO

38       create_module(2), init_module(2), query_module(2)
39

COLOPHON

41       This  page  is  part of release 3.22 of the Linux man-pages project.  A
42       description of the project, and information about reporting  bugs,  can
43       be found at http://www.kernel.org/doc/man-pages/.
44
45
46
47Linux                             2006-02-09                  DELETE_MODULE(2)
Impressum