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.\" 26a87c2a93SDavid E. O'Brien.\" $Id: kldunload.8,v 1.5 1998/11/07 00:42:52 des Exp $ 27a79fe607SDoug Rabson.\" 28a79fe607SDoug Rabson.Dd April 25, 1997 29a79fe607SDoug Rabson.Dt KLDUNLOAD 8 302830148aSJohn-Mark Gurney.Os FreeBSD 31a79fe607SDoug Rabson.Sh NAME 32a79fe607SDoug Rabson.Nm kldunload 33a79fe607SDoug Rabson.Nd unload a file from the kernel 34a79fe607SDoug Rabson.Sh SYNOPSIS 35a79fe607SDoug Rabson.Nm kldunload 36a79fe607SDoug Rabson.Op Fl v 37eda1fa09SDag-Erling Smørgrav.Fl i Ar id 38eda1fa09SDag-Erling Smørgrav.Nm kldunload 39eda1fa09SDag-Erling Smørgrav.Op Fl v 40eda1fa09SDag-Erling Smørgrav.Fl n Ar name 41a79fe607SDoug Rabson.Sh DESCRIPTION 42a79fe607SDoug RabsonThe 43a79fe607SDoug Rabson.Nm 44a79fe607SDoug Rabsonutility unloads a file which was previously loaded with 45a79fe607SDoug Rabson.Xr kldload 8 . 46a79fe607SDoug Rabson.Pp 4757e78ffbSPhilippe CharnierThe following options are available: 48a87c2a93SDavid E. O'Brien.Bl -tag -width indentXX 49a79fe607SDoug Rabson.It Fl v 50a79fe607SDoug RabsonBe more verbose. 51a79fe607SDoug Rabson.It Fl i Ar id 52a79fe607SDoug RabsonUnload the file with this ID. 53a79fe607SDoug Rabson.It Fl n Ar name 54a79fe607SDoug RabsonUnload the file with this name. 55a79fe607SDoug Rabson.El 56a87c2a93SDavid E. O'Brien.Sh DIAGNOSTICS 57a87c2a93SDavid E. O'BrienThe 58a87c2a93SDavid E. O'Brien.Nm 59a87c2a93SDavid E. O'Brienutility exits with a status of 0 on success 60a87c2a93SDavid E. O'Brienand with a nonzero status if an error occurs. 61a79fe607SDoug Rabson.Sh SEE ALSO 62a79fe607SDoug Rabson.Xr kldload 8 , 63a79fe607SDoug Rabson.Xr kldstat 8 642830148aSJohn-Mark Gurney.Sh HISTORY 652830148aSJohn-Mark GurneyThe 662830148aSJohn-Mark Gurney.Nm 672830148aSJohn-Mark Gurneycommand first appeared in 68a87c2a93SDavid E. O'Brien.Fx 3.0 , 69a87c2a93SDavid E. O'Brienreplacing the 70a87c2a93SDavid E. O'Brien.Xr lkm 4 71a87c2a93SDavid E. O'Brieninterface. 7268085a0eSPhilippe Charnier.Sh AUTHORS 7368085a0eSPhilippe Charnier.An Doug Rabson Aq dfr@FreeBSD.org 74