Home | History | Annotate | Download | only in drvctl
History log of /src/sbin/drvctl/drvctl.8
RevisionDateAuthorComments
 1.20  07-Aug-2019  wiz Remove superfluous Pp.
 1.19  06-Aug-2019  mrg add an example about reattaching USB devices
 1.18  11-Sep-2016  sevan branches: 1.18.14;
Document the version drvctl appeard.
Reword bad sentence.
Remove space in License.
Bump date.
 1.17  08-Aug-2015  mrg add an example for rescanning ATA busses.
 1.16  13-May-2015  mlelstv Add documentation for the drvctl driver and add reference.
Fixes PR 49895.
 1.15  25-Feb-2015  wiz Bump date for previous.
New sentence, new line.
 1.14  24-Feb-2015  mlelstv Let drvctl -p select elements from an array property by numeric index.
 1.13  16-Jan-2012  pgoyette branches: 1.13.18;
Enhance drvctl -p processing to handle new autoconfig info in property
dictionaries.
 1.12  07-Aug-2011  jmcneill branches: 1.12.2;
add the -t option that modifies -l behaviour to recursively scan for
child devices and print them in tree format:

$ drvctl -lt usb0
uhub0
uhub6
uhidev0
ukbd0
wskbd1
uhidev1
ums0
wsmouse1
uhid0
ubt0
 1.11  07-Aug-2011  jmcneill add an optional argument to the -p flag that lets you extract specific
property values from the command-line:

$ drvctl -p wd0 disk-info/geometry/cylinders-per-unit
620181
$ drvctl -p wd0 device-driver device-unit
wd
0
$ drvctl -p wd0 nonexistent || echo "not found"
not found
 1.10  20-Apr-2009  wiz Document -n.
 1.9  20-Apr-2009  wiz Add -n to usage. Now it just needs to be documented.
 1.8  20-Apr-2009  wiz Bump date for previous. Remove trailing whitespace.
 1.7  20-Apr-2009  dyoung Add flag -n to suppress the first column of drvctl -l output.
 1.6  04-Apr-2009  joerg If drvctl -l is used without argument, print the root device nodes.
 1.5  16-Feb-2008  dyoung branches: 1.5.10; 1.5.12; 1.5.16;
Document -l, -Q, -R, and -S.
 1.4  10-Mar-2007  christos branches: 1.4.4; 1.4.6;
drvctl 4 does not exist.
 1.3  22-Sep-2006  thorpej branches: 1.3.2; 1.3.4;
- Add a new DRVCTLCOMMAND ioctl to /dev/drvctl. This is a generic
"execute a command" ioctl that takes a dictionary as an argument
(specifying the command and arguments) and returns a dictionary
with the results (error code, optional error message, optional
result data).

- Define and implement a "get-properties" command for DRVCTLCOMMAND
that returns the properties dictionary of the specified device.

- Add a -p flag to drvctl(8) to fetch and display the properties of
the specified device.

This is a great example of how to use prop_dictionary_sendrecv_ioctl().
 1.2  18-Aug-2004  wiz New sentence, new line.
 1.1  18-Aug-2004  drochner add a little utility to exercise the rescan / detach autoconf functions
 1.3.4.1  03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.3.2.1  31-Jul-2007  liamjfoy Pull up following revision(s) (requested by jnemeth in ticket #805):
sbin/drvctl/drvctl.8: revision 1.4
drvctl 4 does not exist.
 1.4.6.1  18-Feb-2008  mjf Sync with HEAD.
 1.4.4.1  23-Mar-2008  matt sync with HEAD
 1.5.16.1  21-Apr-2010  matt sync to netbsd-5
 1.5.12.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.5.10.3  12-Aug-2011  riz Pull up following revision(s) (requested by jmcneill in ticket #1656):
sbin/drvctl/drvctl.8: revision 1.11
sbin/drvctl/drvctl.8: revision 1.12
sbin/drvctl/drvctl.c: revision 1.11
sbin/drvctl/drvctl.c: revision 1.12
add an optional argument to the -p flag that lets you extract specific
property values from the command-line:
$ drvctl -p wd0 disk-info/geometry/cylinders-per-unit
620181
$ drvctl -p wd0 device-driver device-unit
wd
0
$ drvctl -p wd0 nonexistent || echo "not found"
not found
add the -t option that modifies -l behaviour to recursively scan for
child devices and print them in tree format:
$ drvctl -lt usb0
uhub0
uhub6
uhidev0
ukbd0
wskbd1
uhidev1
ums0
wsmouse1
uhid0
ubt0
 1.5.10.2  06-Jun-2009  bouyer Pull up following revision(s) (requested by dyoung in ticket #736):
sbin/drvctl/drvctl.8: revisions 1.7 - 1.10
sbin/drvctl/drvctl.c: revision 1.7 via patch, 1.9, 1.10
fix sign-compare issues
Add flag -n to suppress the first column of drvctl -l output.
Mention -n in usage.
Bump date for previous. Remove trailing whitespace.
Add -n to usage. Now it just needs to be documented.
Document -n.
 1.5.10.1  03-May-2009  snj Pull up following revision(s) (requested by joerg in ticket #675):
sbin/drvctl/drvctl.8: revision 1.6
sbin/drvctl/drvctl.c: revision 1.8 via patch
If drvctl -l is used without argument, print the root device nodes.
 1.12.2.1  17-Apr-2012  yamt sync with head
 1.13.18.1  07-Mar-2015  snj Pull up following revision(s) (requested by mlelstv in ticket #562):
sbin/drvctl/drvctl.8: revision 1.14
sbin/drvctl/drvctl.c: revision 1.17
Let drvctl -p select elements from an array property by numeric index.
 1.18.14.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed