xref: /freebsd/sbin/kldunload/kldunload.8 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1a79fe607SDoug Rabson.\"
2a79fe607SDoug Rabson.\" Copyright (c) 1997 Doug Rabson
3a79fe607SDoug Rabson.\" All rights reserved.
4a79fe607SDoug Rabson.\"
5a79fe607SDoug Rabson.\" Redistribution and use in source and binary forms, with or without
6a79fe607SDoug Rabson.\" modification, are permitted provided that the following conditions
7a79fe607SDoug Rabson.\" are met:
8a79fe607SDoug Rabson.\" 1. Redistributions of source code must retain the above copyright
9a79fe607SDoug Rabson.\"    notice, this list of conditions and the following disclaimer.
10a79fe607SDoug Rabson.\" 2. Redistributions in binary form must reproduce the above copyright
11a79fe607SDoug Rabson.\"    notice, this list of conditions and the following disclaimer in the
12a79fe607SDoug Rabson.\"    documentation and/or other materials provided with the distribution.
13a79fe607SDoug Rabson.\"
14a79fe607SDoug Rabson.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15a79fe607SDoug Rabson.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16a79fe607SDoug Rabson.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17a79fe607SDoug Rabson.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18a79fe607SDoug Rabson.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19a79fe607SDoug Rabson.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20a79fe607SDoug Rabson.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21a79fe607SDoug Rabson.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22a79fe607SDoug Rabson.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23a79fe607SDoug Rabson.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24a79fe607SDoug Rabson.\" SUCH DAMAGE.
25a79fe607SDoug Rabson.\"
261691befeSWojciech A. Koszek.Dd February 27, 2006
27a79fe607SDoug Rabson.Dt KLDUNLOAD 8
289fe48c6eSRuslan Ermilov.Os
29a79fe607SDoug Rabson.Sh NAME
30a79fe607SDoug Rabson.Nm kldunload
31a79fe607SDoug Rabson.Nd unload a file from the kernel
32a79fe607SDoug Rabson.Sh SYNOPSIS
337c7fb079SRuslan Ermilov.Nm
3421414470SRuslan Ermilov.Op Fl fv
355658c6d3SWojciech A. Koszek.Fl i Ar id ...
367c7fb079SRuslan Ermilov.Nm
3721414470SRuslan Ermilov.Op Fl fv
38de8d5490SNick Hibma.Op Fl n
395658c6d3SWojciech A. Koszek.Ar name ...
40a79fe607SDoug Rabson.Sh DESCRIPTION
41a79fe607SDoug RabsonThe
42a79fe607SDoug Rabson.Nm
43a79fe607SDoug Rabsonutility unloads a file which was previously loaded with
44a79fe607SDoug Rabson.Xr kldload 8 .
45a79fe607SDoug Rabson.Pp
4657e78ffbSPhilippe CharnierThe following options are available:
4721414470SRuslan Ermilov.Bl -tag -width ".Fl n Ar name"
4865a311fcSPoul-Henning Kamp.It Fl f
4965a311fcSPoul-Henning KampForce the unload.
50383f72a7SGleb SmirnoffThis ignores error returns to
51383f72a7SGleb Smirnoff.Dv MOD_QUIESCE
52383f72a7SGleb Smirnofffrom the module and implies
5365a311fcSPoul-Henning Kampthat the module should be unloaded even if it is currently in use.
5465a311fcSPoul-Henning KampThe users are left to cope as best they can.
55a79fe607SDoug Rabson.It Fl v
56a79fe607SDoug RabsonBe more verbose.
57a79fe607SDoug Rabson.It Fl i Ar id
58a79fe607SDoug RabsonUnload the file with this ID.
59a79fe607SDoug Rabson.It Fl n Ar name
60a79fe607SDoug RabsonUnload the file with this name.
61de8d5490SNick Hibma.It Ar name
62de8d5490SNick HibmaUnload the file with this name.
63a79fe607SDoug Rabson.El
64a866e170SRuslan Ermilov.Sh EXIT STATUS
65a866e170SRuslan Ermilov.Ex -std
66a79fe607SDoug Rabson.Sh SEE ALSO
67fa8b1c61SChris Costello.Xr kldunload 2 ,
68a79fe607SDoug Rabson.Xr kldload 8 ,
69a79fe607SDoug Rabson.Xr kldstat 8
702830148aSJohn-Mark Gurney.Sh HISTORY
712830148aSJohn-Mark GurneyThe
722830148aSJohn-Mark Gurney.Nm
73e1205e80SPhilippe Charnierutility first appeared in
74a87c2a93SDavid E. O'Brien.Fx 3.0 ,
75a87c2a93SDavid E. O'Brienreplacing the
765ab2dec3SChristian Brueffer.Nm lkm
77a87c2a93SDavid E. O'Brieninterface.
7868085a0eSPhilippe Charnier.Sh AUTHORS
79*bd0891ceSBaptiste Daroussin.An Doug Rabson Aq Mt dfr@FreeBSD.org
80