aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bus.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-04-27 16:29:03 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-04-27 16:29:03 +0000
commita907c6914c5879870b2597a63253cea0a5b7bdb8 (patch)
tree57198594e0baf051edc63655c2d1254c1a033442 /sys/sys/bus.h
parent167e63e3948c9ee374152b5ce2a270e805d22801 (diff)
downloadsrc-a907c6914c5879870b2597a63253cea0a5b7bdb8.tar.gz
src-a907c6914c5879870b2597a63253cea0a5b7bdb8.zip
Add a new rescan method to the bus interface.
The BUS_RESCAN() method rescans a single bus device checking for devices that have been added or removed from the bus. A new 'rescan' command is added to devctl(8) to trigger a rescan. Differential Revision: https://reviews.freebsd.org/D6016
Notes
Notes: svn path=/head/; revision=298707
Diffstat (limited to 'sys/sys/bus.h')
-rw-r--r--sys/sys/bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index 01b98f5e18e9..c46fbb24a544 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -117,6 +117,7 @@ struct devreq {
#define DEV_SUSPEND _IOW('D', 5, struct devreq)
#define DEV_RESUME _IOW('D', 6, struct devreq)
#define DEV_SET_DRIVER _IOW('D', 7, struct devreq)
+#define DEV_RESCAN _IOW('D', 9, struct devreq)
/* Flags for DEV_DETACH and DEV_DISABLE. */
#define DEVF_FORCE_DETACH 0x0000001