| History log of /src/sbin/drvctl |
| Revision | Date | Author | Comments |
| 1.4 | 22-Sep-2006 |
thorpej | - 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.3 | 27-Jun-2005 |
christos | Move WARNS=3 to the Makefile.inc, and add a little const to the remaining programs that did not compile before.
|
| 1.2 | 20-Jan-2005 |
xtraeme | ANSIfy; WARNS=3
|
| 1.1 | 18-Aug-2004 |
drochner | add a little utility to exercise the rescan / detach autoconf functions
|
| 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
|
| 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 | branches: 1.22.4; 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.
|
| 1.22.4.1 | 02-Aug-2025 |
perseant | Sync with HEAD
|