summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2011-11-22 19:31:43 +0000
committermarius <marius@FreeBSD.org>2011-11-22 19:31:43 +0000
commitc20986bc61d36fa343f74f7e5f03b4a356a00366 (patch)
tree883296ff2a5cd3436334a299a93df4cf7b10efc4 /sys/sys
parent486dcdb0899485485d1f4f34788ef937ffdbf494 (diff)
downloadFreeBSD-src-c20986bc61d36fa343f74f7e5f03b4a356a00366.zip
FreeBSD-src-c20986bc61d36fa343f74f7e5f03b4a356a00366.tar.gz
- Add a DEVMETHOD_END alias for KOBJMETHOD_END so that along with 'driver_t'
and DEVMETHOD() we can fully hide the explicit mention of kobj(9) from device drivers. - Update the example in driver.9 to use DEVMETHOD_END. Submitted by: jhb MFC after: 3 days
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/bus.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index 25dcbce..6636843 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -571,9 +571,10 @@ extern int bus_current_pass;
void bus_set_pass(int pass);
/**
- * Shorthand for constructing method tables.
+ * Shorthands for constructing method tables.
*/
#define DEVMETHOD KOBJMETHOD
+#define DEVMETHOD_END KOBJMETHOD_END
/*
* Some common device interfaces.
OpenPOWER on IntegriCloud