aboutsummaryrefslogtreecommitdiff
path: root/lib/libdevctl/devctl.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-08-29 22:48:36 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-08-29 22:48:36 +0000
commite05ec081fe81beb79567b82723bd045aa50f19c0 (patch)
tree49d4724d89f0eae45adf3d20810b4392775e83b1 /lib/libdevctl/devctl.h
parenta3d5eb2481e8d136300b107d93c282e63bf36969 (diff)
downloadsrc-e05ec081fe81beb79567b82723bd045aa50f19c0.tar.gz
src-e05ec081fe81beb79567b82723bd045aa50f19c0.zip
Implement 'devctl clear driver' to undo a previous 'devctl 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. MFC after: 1 month Sponsored by: Chelsio Communications
Notes
Notes: svn path=/head/; revision=305034
Diffstat (limited to 'lib/libdevctl/devctl.h')
-rw-r--r--lib/libdevctl/devctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libdevctl/devctl.h b/lib/libdevctl/devctl.h
index 670ca1a114f5..d49199ad0b59 100644
--- a/lib/libdevctl/devctl.h
+++ b/lib/libdevctl/devctl.h
@@ -38,6 +38,7 @@ int devctl_disable(const char *device, bool force_detach);
int devctl_suspend(const char *device);
int devctl_resume(const char *device);
int devctl_set_driver(const char *device, const char *driver, bool force);
+int devctl_clear_driver(const char *device, bool force);
int devctl_rescan(const char *device);
int devctl_delete(const char *device, bool force);