summaryrefslogtreecommitdiffstats
path: root/lib/libdevctl/devctl.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-09-30 22:05:47 +0000
committerjhb <jhb@FreeBSD.org>2016-09-30 22:05:47 +0000
commit0f41551ef9dde560d9d191d7190af02904dbf611 (patch)
tree00567e70252000c0a9f26250a859dfd20c8e1348 /lib/libdevctl/devctl.h
parentc03db820416e89f29bd1f5cb8f59a221d4d11463 (diff)
downloadFreeBSD-src-0f41551ef9dde560d9d191d7190af02904dbf611.zip
FreeBSD-src-0f41551ef9dde560d9d191d7190af02904dbf611.tar.gz
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
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 3426cce..d65ea13 100644
--- a/lib/libdevctl/devctl.h
+++ b/lib/libdevctl/devctl.h
@@ -36,5 +36,6 @@ int devctl_detach(const char *device, bool force);
int devctl_enable(const char *device);
int devctl_disable(const char *device, bool force_detach);
int devctl_set_driver(const char *device, const char *driver, bool force);
+int devctl_clear_driver(const char *device, bool force);
#endif /* !__DEVCTL_H__ */
OpenPOWER on IntegriCloud