]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 305034: Implement 'devctl clear driver' to undo a previous 'set driver'.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 30 Sep 2016 22:05:47 +0000 (22:05 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 30 Sep 2016 22:05:47 +0000 (22:05 +0000)
commit037368c81633cf6ed983e0a39509082f32dbfb09
tree00567e70252000c0a9f26250a859dfd20c8e1348
parentd51c38c8540bc00aea7e4d06defd5e0d029fd6b4
MFC 305034: Implement 'devctl clear driver' to undo a previous 'set driver'.

Add a new 'clear driver' command for devctl along with the accompanying
ioctl and devctl_clear_driver() library routine to reset a device to
use a wildcard devclass instead of a fixed devclass.  This can be used
to undo a previous 'set driver' command.  After the device's name has
been reset to permit wildcard names, it is reprobed so that it can
attach to newly-available (to it) device drivers.

Sponsored by: Chelsio Communications

git-svn-id: svn://svn.freebsd.org/base/stable/10@306533 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libdevctl/devctl.3
lib/libdevctl/devctl.c
lib/libdevctl/devctl.h
sys/kern/subr_bus.c
sys/sys/bus.h
usr.sbin/devctl/devctl.8
usr.sbin/devctl/devctl.c