From c20986bc61d36fa343f74f7e5f03b4a356a00366 Mon Sep 17 00:00:00 2001 From: marius Date: Tue, 22 Nov 2011 19:31:43 +0000 Subject: - 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 --- share/man/man9/driver.9 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/man') diff --git a/share/man/man9/driver.9 b/share/man/man9/driver.9 index 960c9ae..93ab992 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 = { -- cgit v1.1