1.\" $NetBSD: drvctl.8,v 1.2 2004/08/18 13:21:36 wiz Exp $ 2.\" 3.\" Copyright (c) 2004 4.\" Matthias Drochner. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" 27.Dd August 17, 2004 28.Dt DRVCTL 8 29.Os 30.Sh NAME 31.Nm drvctl 32.Nd tool to rescan busses and detach devices on user request 33.Sh SYNOPSIS 34.Nm 35.Fl r 36.Op Fl a Ar attribute 37.Ar busdevice 38.Op locator ... 39.Nm 40.Fl d 41.Ar device 42.Sh DESCRIPTION 43The 44.Nm 45program works with the 46.Xr drvctl 4 47pseudo-driver, and allows to rescan busses and to detach 48drivers from devices. 49.Pp 50The following options are available: 51.Bl -tag -width 123456 52.It Fl r 53Rescan the bus given by the 54.Ar busdevice 55argument. 56The scan range can be restricted by an optional 57.Ar locator 58list. 59.It Fl a 60Give the interface attribute where children are to be 61attached to (and which defines the interpretation of 62the locator information). 63This will only be needed in rare cases where the bus 64has multiple attributes. 65.It Fl d 66Detach the device driver from the device given by the 67.Ar device 68argument. 69.El 70.Sh FILES 71.Pa /dev/drvctl 72.Sh SEE ALSO 73.Xr drvctl 4 , 74.Xr autoconf 9 75.Sh BUGS 76Currently, there is no good way to get information about locator 77lengths and default values (which is present at kernel configuration 78time) out of a running kernel. 79Thus the locator handling is less intelligent as it could be. 80