CVS log for src/sbin/drvctl/drvctl.c
Up to [cvs.NetBSD.org] / src / sbin / drvctl
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Nov 3 10:43:26 2024 UTC (5 weeks, 3 days ago) by rillig
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -3
lines
sbin, usr.bin, usr.sbin: remove redundant getopt declarations
No binary change, except for assertion line numbers in tprof.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Aug 21 07:51:30 2022 UTC (2 years, 3 months ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +8 -5
lines
When extracting properties, don't bail for non-existent or invalid path
elements, but continue with next properry.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Jun 11 13:49:57 2020 UTC (4 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +13 -20
lines
Update for proplib(3) API changes.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Feb 14 17:43:09 2018 UTC (6 years, 9 months ago) by jakllsch
Branches: MAIN
CVS tags: phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
is-mlppp-base,
is-mlppp
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +7 -7
lines
Revert functional changes in previous, at expense of strict KNF conformance.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jan 7 15:26:43 2018 UTC (6 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +41 -44
lines
KNF.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Dec 7 03:34:00 2015 UTC (9 years ago) by pgoyette
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2
lines
synch usage() with the man page.
Revision 1.16.18.1: download - view: text, markup, annotated - select for diffs
Sat Mar 7 06:06:24 2015 UTC (9 years, 9 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +22 -6
lines
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.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Feb 24 18:15:29 2015 UTC (9 years, 9 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +22 -6
lines
Let drvctl -p select elements from an array property by numeric index.
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:05:38 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +45 -31
lines
sync with head
Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Jan 17 08:22:09 2012 UTC (12 years, 10 months ago) by wiz
Branches: MAIN
CVS tags: yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
tls-maxphys-base,
tls-maxphys,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
netbsd-7-base,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
agc-symver-base,
agc-symver
Branch point for: netbsd-7
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2
lines
Add -n to usage.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jan 16 19:43:50 2012 UTC (12 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +44 -30
lines
Enhance drvctl -p processing to handle new autoconfig info in property
dictionaries.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Oct 19 22:13:46 2011 UTC (13 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -3
lines
Don't print the silly header, "Properties for device `xxx0':", before
the device properties if the -n option was given.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Aug 29 14:34:59 2011 UTC (13 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2
lines
Use __dead
Revision 1.6.10.4: download - view: text, markup, annotated - select for diffs
Sun Aug 14 23:44:48 2011 UTC (13 years, 4 months ago) by riz
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2
Diff to: previous 1.6.10.3: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.10.3: +5 -4
lines
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.
Revision 1.6.10.3: download - view: text, markup, annotated - select for diffs
Fri Aug 12 20:55:55 2011 UTC (13 years, 4 months ago) by riz
Branches: netbsd-5
Diff to: previous 1.6.10.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.10.2: +115 -38
lines
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
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Aug 7 13:00:35 2011 UTC (13 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +55 -32
lines
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
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Aug 7 12:00:11 2011 UTC (13 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +61 -7
lines
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
Revision 1.6.16.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 05:26:33 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +20 -7
lines
sync to netbsd-5
Revision 1.6.10.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 21:59:18 2009 UTC (15 years, 6 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
matt-nb5-pq3-base,
matt-nb5-pq3
Diff to: previous 1.6.10.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.10.1: +14 -6
lines
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.
Revision 1.6.12.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:19:00 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +20 -7
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.6.10.1: download - view: text, markup, annotated - select for diffs
Sun May 3 22:49:51 2009 UTC (15 years, 7 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -6
lines
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.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Apr 20 21:41:50 2009 UTC (15 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: matt-premerge-20091211,
matt-mips64-premerge-20101231,
jym-xensuspend-nbase,
jym-xensuspend-base,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2
lines
Mention -n in usage.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Apr 20 21:40:42 2009 UTC (15 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +12 -4
lines
Add flag -n to suppress the first column of drvctl -l output.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Apr 4 22:05:47 2009 UTC (15 years, 8 months ago) by joerg
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +11 -6
lines
If drvctl -l is used without argument, print the root device nodes.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Mar 16 13:35:37 2009 UTC (15 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2
lines
fix sign-compare issues
Revision 1.5.8.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:44:22 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +67 -17
lines
sync with HEAD
Revision 1.5.10.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:04:16 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +67 -17
lines
Sync with HEAD.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jan 27 01:38:33 2008 UTC (16 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
netbsd-5-base,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
mjf-devfs2-base,
mjf-devfs2,
mjf-devfs-base,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
matt-armv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base
Branch point for: netbsd-5,
matt-nb5-mips64,
jym-xensuspend
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +67 -17
lines
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.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Sep 22 04:37:36 2006 UTC (18 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: mjf-devfs,
matt-armv6
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +58 -4
lines
- 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().
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 14 20:39:52 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +3 -2
lines
Pull up revision 1.4 (requested by lukem in ticket #401):
Fix an uninitialized variable issue.
Found with gcc -Wuninitialized.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Jun 2 00:00:46 2005 UTC (19 years, 6 months ago) by lukem
Branches: MAIN
CVS tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -2
lines
Fix an uninitialized variable issue.
Found with gcc -Wuninitialized.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Jan 20 15:56:30 2005 UTC (19 years, 10 months ago) by xtraeme
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2
lines
ANSIfy; WARNS=3
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Aug 18 13:24:55 2004 UTC (20 years, 3 months ago) by wiz
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -2
lines
Sync usage with man page.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Aug 18 12:30:01 2004 UTC (20 years, 3 months ago) by drochner
Branches: MAIN
add a little utility to exercise the rescan / detach autoconf functions
CVSweb <webmaster@jp.NetBSD.org>