Home | History | Annotate | Line # | Download | only in drvctl
drvctl.8 revision 1.3.4.1
 $NetBSD: drvctl.8,v 1.3.4.1 2007/09/03 07:02:51 wrstuden Exp $

Copyright (c) 2004
Matthias Drochner. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

.Dd March 10, 2007 .Dt DRVCTL 8 .Os .Sh NAME .Nm drvctl .Nd tool to rescan busses and detach devices on user request .Sh SYNOPSIS .Nm .Fl r .Op Fl a Ar attribute .Ar busdevice .Op locator ... .Nm .Fl d .Ar device .Nm .Fl p .Ar device .Sh DESCRIPTION The .Nm program works with the .Xr drvctl 4 pseudo-driver, and allows to rescan busses and to detach drivers from devices.

p The following options are available: l -tag -width 123456 t Fl r Rescan the bus given by the .Ar busdevice argument. The scan range can be restricted by an optional .Ar locator list. t Fl a Give the interface attribute where children are to be attached to (and which defines the interpretation of the locator information). This will only be needed in rare cases where the bus has multiple attributes. t Fl d Detach the device driver from the device given by the .Ar device argument. t Fl p Get the properties for the device specified by the .Ar device argument. The properties are displayed as an XML property list. .El .Sh FILES

a /dev/drvctl .Sh SEE ALSO .Xr proplib 3 , .Xr drvctl 4 ,
.Xr autoconf 9 .Sh BUGS Currently, there is no good way to get information about locator lengths and default values (which is present at kernel configuration time) out of a running kernel. Thus the locator handling is less intelligent as it could be.