aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/driver.9
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2011-11-22 19:31:43 +0000
committerMarius Strobl <marius@FreeBSD.org>2011-11-22 19:31:43 +0000
commit788a85e8846b9738cda4938f201de17c0dd25468 (patch)
tree883296ff2a5cd3436334a299a93df4cf7b10efc4 /share/man/man9/driver.9
parent471ad1d0974545b33e5744dce33be0cdb46a3b00 (diff)
downloadsrc-788a85e8846b9738cda4938f201de17c0dd25468.tar.gz
src-788a85e8846b9738cda4938f201de17c0dd25468.zip
- 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
Notes
Notes: svn path=/head/; revision=227829
Diffstat (limited to 'share/man/man9/driver.9')
-rw-r--r--share/man/man9/driver.94
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man9/driver.9 b/share/man/man9/driver.9
index 960c9ae9535c..93ab992ce741 100644
--- a/share/man/man9/driver.9
+++ b/share/man/man9/driver.9
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 3, 2010
+.Dd November 22, 2011
.Dt DRIVER 9
.Os
.Sh NAME
@@ -58,7 +58,7 @@ static device_method_t foo_methods[] = {
DEVMETHOD(bogo_twiddle, foo_twiddle),
/* Terminate method list */
- { 0, 0 }
+ DEVMETHOD_END
};
static driver_t foo_driver = {