xref: /netbsd-src/sbin/modunload/modunload.8 (revision cb7bef0a8b1015402502a05eb872d9e4ac9d633d)
1*cb7bef0aSwiz.\" $NetBSD: modunload.8,v 1.23 2016/09/12 06:55:10 wiz Exp $
20114e805Scgd.\"
326e41afeScgd.\" Copyright (c) 1993 Christopher G. Demetriou
426e41afeScgd.\" All rights reserved.
526e41afeScgd.\"
626e41afeScgd.\" Redistribution and use in source and binary forms, with or without
726e41afeScgd.\" modification, are permitted provided that the following conditions
826e41afeScgd.\" are met:
926e41afeScgd.\" 1. Redistributions of source code must retain the above copyright
1026e41afeScgd.\"    notice, this list of conditions and the following disclaimer.
1126e41afeScgd.\" 2. Redistributions in binary form must reproduce the above copyright
1226e41afeScgd.\"    notice, this list of conditions and the following disclaimer in the
1326e41afeScgd.\"    documentation and/or other materials provided with the distribution.
14db755e7cScgd.\" 3. All advertising materials mentioning features or use of this software
15db755e7cScgd.\"    must display the following acknowledgement:
16db755e7cScgd.\"          This product includes software developed for the
17c39c2e62Sgrant.\"          NetBSD Project.  See http://www.NetBSD.org/ for
18db755e7cScgd.\"          information about NetBSD.
19db755e7cScgd.\" 4. The name of the author may not be used to endorse or promote products
20db755e7cScgd.\"    derived from this software without specific prior written permission.
2126e41afeScgd.\"
2226e41afeScgd.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2326e41afeScgd.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2426e41afeScgd.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2526e41afeScgd.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2626e41afeScgd.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2726e41afeScgd.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2826e41afeScgd.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2926e41afeScgd.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3026e41afeScgd.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3126e41afeScgd.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3226e41afeScgd.\"
33db755e7cScgd.\" <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
34db755e7cScgd.\"
35441c8e30Ssevan.Dd September 12, 2016
3626e41afeScgd.Dt MODUNLOAD 8
3773f545bbSwiz.Os
3826e41afeScgd.Sh NAME
3926e41afeScgd.Nm modunload
4026e41afeScgd.Nd unload a kernel module
4126e41afeScgd.Sh SYNOPSIS
42990562bfSwiz.Nm
430efea177Sad.Ar name
44ed7bfdfaSjmcneill\&...
4526e41afeScgd.Sh DESCRIPTION
4626e41afeScgdThe
4726e41afeScgd.Nm
4826e41afeScgdutility unloads a loadable kernel module from a running system.
490efea177Sad.Pp
5026e41afeScgd.Ar name
510efea177Sadis name of the module to be unloaded, as shown by
5226e41afeScgd.Xr modstat 8 .
53696ffdd0Spooka.Pp
54696ffdd0SpookaBuiltin modules will not be unloaded from memory, but they will be
55696ffdd0Spookadisabled.
56696ffdd0SpookaThey can be re-enabled using
57696ffdd0Spooka.Xr modload 8 .
5826e41afeScgd.Sh DIAGNOSTICS
5926e41afeScgdThe
6026e41afeScgd.Nm
6126e41afeScgdutility exits with a status of 0 on success
6226e41afeScgdand with a nonzero status if an error occurs.
6326e41afeScgd.Sh SEE ALSO
64e6045f63Spgoyette.Xr modctl 2 ,
6591e230c6Sjruoho.Xr module 7 ,
660a1e7de7Sjtc.Xr modload 8 ,
6726e41afeScgd.Xr modstat 8
6826e41afeScgd.Sh HISTORY
69441c8e30SsevanA
70441c8e30Ssevan.Nm
71441c8e30Ssevanutility appeared in
72441c8e30Ssevan.Nx 5.0 .
7326e41afeScgdThe
7426e41afeScgd.Nm
7526e41afeScgdcommand was designed to be similar in functionality
7626e41afeScgdto the corresponding command in
7726e41afeScgd.Tn "SunOS 4.1.3" .
78*cb7bef0aSwiz.Sh AUTHORS
79441c8e30Ssevan.An Andrew Doran Aq Mt ad@NetBSD.org .
80