xref: /netbsd-src/sbin/drvctl/drvctl.8 (revision 1ad9454efb13a65cd7535ccf867508cb14d9d30e)
1.\" $NetBSD: drvctl.8,v 1.3 2006/09/22 04:37:36 thorpej 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 September 21, 2006
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.Nm
43.Fl p
44.Ar device
45.Sh DESCRIPTION
46The
47.Nm
48program works with the
49.Xr drvctl 4
50pseudo-driver, and allows to rescan busses and to detach
51drivers from devices.
52.Pp
53The following options are available:
54.Bl -tag -width 123456
55.It Fl r
56Rescan the bus given by the
57.Ar busdevice
58argument.
59The scan range can be restricted by an optional
60.Ar locator
61list.
62.It Fl a
63Give the interface attribute where children are to be
64attached to (and which defines the interpretation of
65the locator information).
66This will only be needed in rare cases where the bus
67has multiple attributes.
68.It Fl d
69Detach the device driver from the device given by the
70.Ar device
71argument.
72.It Fl p
73Get the properties for the device specified by the
74.Ar device
75argument.
76The properties are displayed as an XML property list.
77.El
78.Sh FILES
79.Pa /dev/drvctl
80.Sh SEE ALSO
81.Xr proplib 3 ,
82.Xr drvctl 4 ,
83.Xr autoconf 9
84.Sh BUGS
85Currently, there is no good way to get information about locator
86lengths and default values (which is present at kernel configuration
87time) out of a running kernel.
88Thus the locator handling is less intelligent as it could be.
89