1 .\" $NetBSD: drvctl.8,v 1.9 2009/04/20 22:05:47 wiz Exp $
4 .\" Matthias Drochner. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
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.
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
32 .Nd tool to rescan busses and detach devices on user request
61 program works with the
63 pseudo-driver, and allows to rescan busses and to detach
66 The following options are available:
67 .Bl -tag -width 123456
69 Give the interface attribute where children are to be
70 attached to (and which defines the interpretation of
71 the locator information).
72 This will only be needed in rare cases where the bus
73 has multiple attributes.
75 Detach the device driver from the device given by the
79 List the children of the device specified by the
84 is not specified, list roots of the device tree instead.
85 Output comes in two columns.
93 The second column is the child.
95 Suppress first column in
99 Get the properties for the device specified by the
102 The properties are displayed as an XML property list.
104 Resume the ancestors of
107 itself, and all of its descendants.
109 Resume both the ancestors of
115 Rescan the bus given by the
118 The scan range can be restricted by an optional
122 Suspend both the descendants of
135 Currently, there is no good way to get information about locator
136 lengths and default values (which is present at kernel configuration
137 time) out of a running kernel.
138 Thus the locator handling is less intelligent as it could be.