Home | History | Annotate | Download | only in drvctl
History log of /src/sbin/drvctl/drvctl.c
RevisionDateAuthorComments
 1.23  03-Nov-2024  rillig sbin, usr.bin, usr.sbin: remove redundant getopt declarations

No binary change, except for assertion line numbers in tprof.
 1.22  21-Aug-2022  mlelstv When extracting properties, don't bail for non-existent or invalid path
elements, but continue with next properry.
 1.21  11-Jun-2020  thorpej Update for proplib(3) API changes.
 1.20  14-Feb-2018  jakllsch Revert functional changes in previous, at expense of strict KNF conformance.
 1.19  07-Jan-2018  christos KNF.
 1.18  07-Dec-2015  pgoyette synch usage() with the man page.
 1.17  24-Feb-2015  mlelstv Let drvctl -p select elements from an array property by numeric index.
 1.16  17-Jan-2012  wiz branches: 1.16.18;
Add -n to usage.
 1.15  16-Jan-2012  pgoyette Enhance drvctl -p processing to handle new autoconfig info in property
dictionaries.
 1.14  19-Oct-2011  dyoung branches: 1.14.2;
Don't print the silly header, "Properties for device `xxx0':", before
the device properties if the -n option was given.
 1.13  29-Aug-2011  joerg Use __dead
 1.12  07-Aug-2011  jmcneill 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  dyoung Mention -n in usage.
 1.9  20-Apr-2009  dyoung Add flag -n to suppress the first column of drvctl -l output.
 1.8  04-Apr-2009  joerg If drvctl -l is used without argument, print the root device nodes.
 1.7  16-Mar-2009  lukem fix sign-compare issues
 1.6  27-Jan-2008  dyoung branches: 1.6.10; 1.6.12; 1.6.16;
Patch /dev/drvctl and drvctl(8) to let us suspend/resume device
sub-trees, and to let us list the children of a device.

While I am here, add -p to the drvctl(8) usage message.
 1.5  22-Sep-2006  thorpej branches: 1.5.8; 1.5.10;
- 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.4  02-Jun-2005  lukem Fix an uninitialized variable issue.
Found with gcc -Wuninitialized.
 1.3  20-Jan-2005  xtraeme branches: 1.3.2;
ANSIfy; WARNS=3
 1.2  18-Aug-2004  wiz Sync usage with man page.
 1.1  18-Aug-2004  drochner add a little utility to exercise the rescan / detach autoconf functions
 1.3.2.1  14-Jun-2005  tron Pull up revision 1.4 (requested by lukem in ticket #401):
Fix an uninitialized variable issue.
Found with gcc -Wuninitialized.
 1.5.10.1  18-Feb-2008  mjf Sync with HEAD.
 1.5.8.1  23-Mar-2008  matt sync with HEAD
 1.6.16.1  21-Apr-2010  matt sync to netbsd-5
 1.6.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.6.10.4  14-Aug-2011  riz Pull up following revision(s) (requested by jmcneill in ticket #1659):
sbin/drvctl/drvctl.c: patch
Fix the build problem introduced by pullup ticket #1656.
 1.6.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.6.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.6.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.14.2.1  17-Apr-2012  yamt sync with head
 1.16.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.

RSS XML Feed