mirror of https://github.com/mkerrisk/man-pages
57 lines
1.2 KiB
Groff
57 lines
1.2 KiB
Groff
.\" Copyright (C) 1996 Free Software Foundation, Inc.
|
|
.\" This file is distributed according to the GNU General Public License.
|
|
.\" See the file COPYING in the top level source directory for details.
|
|
.\"
|
|
.\" 2006-02-09, some reformatting by Luc Van Oostenryck; some
|
|
.\" reformatting and rewordings by mtk
|
|
.\"
|
|
.TH DELETE_MODULE 2 "2002" Linux "Linux Module Support"
|
|
.SH NAME
|
|
delete_module \- delete a loadable module entry
|
|
.SH SYNOPSIS
|
|
.nf
|
|
.B #include <linux/module.h>
|
|
.sp
|
|
.BI "int delete_module(const char *" name );
|
|
.fi
|
|
.SH DESCRIPTION
|
|
.BR delete_module ()
|
|
attempts to remove an unused loadable module entry.
|
|
If
|
|
.I name
|
|
is NULL,
|
|
all unused modules marked auto-clean will be removed.
|
|
This system call requires privilege.
|
|
.SH "RETURN VALUE"
|
|
On success, zero is returned. On error, \-1 is returned and
|
|
.I errno
|
|
is set appropriately.
|
|
.SH ERRORS
|
|
.TP
|
|
.B EBUSY
|
|
The module is in use.
|
|
.TP
|
|
.B EFAULT
|
|
.I name
|
|
is outside the program's accessible address space.
|
|
.TP
|
|
.B EINVAL
|
|
.I name
|
|
was an empty string.
|
|
.TP
|
|
.B ENOENT
|
|
No module by that name exists.
|
|
.TP
|
|
.B EPERM
|
|
The caller was not privileged
|
|
(did not have the
|
|
.B CAP_SYS_MODULE
|
|
capability).
|
|
.SH "CONFORMING TO"
|
|
.BR delete_module ()
|
|
is Linux specific.
|
|
.SH "SEE ALSO"
|
|
.BR create_module (2),
|
|
.BR init_module (2),
|
|
.BR query_module (2)
|