From owner-freebsd-doc Sat Aug 24 23:10:10 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C873037B400 for ; Sat, 24 Aug 2002 23:10:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1388143E6E for ; Sat, 24 Aug 2002 23:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7P6A1JU096792 for ; Sat, 24 Aug 2002 23:10:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7P6A1UG096791; Sat, 24 Aug 2002 23:10:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D954237B400 for ; Sat, 24 Aug 2002 23:02:48 -0700 (PDT) Received: from www.fastmail.fm (fastmail.fm [209.61.183.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5535043E42 for ; Sat, 24 Aug 2002 23:02:48 -0700 (PDT) (envelope-from dsl@foozle.org) Received: from www.fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 31F5D6DA9B for ; Sun, 25 Aug 2002 01:02:47 -0500 (CDT) Received: from disco.foozle.org (c16772.sunsh1.vic.optusnet.com.au [210.49.228.138]) by www.fastmail.fm (Postfix) with ESMTP id E1EF06DA83 for ; Sun, 25 Aug 2002 01:02:46 -0500 (CDT) Received: by disco.foozle.org (Postfix, from userid 1000) id D3E582F10; Sun, 25 Aug 2002 16:02:41 +1000 (EST) Message-Id: <20020825060241.D3E582F10@disco.foozle.org> Date: Sun, 25 Aug 2002 16:02:41 +1000 (EST) From: David Lay Reply-To: David Lay To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/41993: [PATCH] corrections to driver(9) Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 41993 >Category: docs >Synopsis: [PATCH] corrections to driver(9) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 24 23:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: David Lay >Release: FreeBSD 4.6.2-RELEASE i386 >Organization: none >Environment: System: FreeBSD disco.foozle.org 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #7: Sat Aug 17 19:50:39 EST 2002 root@disco.foozle.org:/usr/obj/usr/src/sys/DISCO i386 >Description: Supplied patch corrects a couple of minor errors in the code examples in driver(9). Patch should apply cleanly to -CURRENT and -STABLE. >How-To-Repeat: man 9 driver >Fix: --- /usr/src/share/man/man9/driver.9.orig Sun Aug 25 15:52:07 2002 +++ /usr/src/share/man/man9/driver.9 Sun Aug 25 15:52:46 2002 @@ -45,7 +45,7 @@ static int foo_frob(device_t, int, int); static int foo_twiddle(device_t, char *); -static struct device_method foo_methods[] = { +static struct device_method_t foo_methods[] = { /* Methods from the device interface */ DEVMETHOD(device_probe, foo_probe), DEVMETHOD(device_attach, foo_attach), @@ -62,8 +62,7 @@ static driver_t foo_driver { "foo", foo_methods, - DRIVER_TYPE_MISC, - sizeof(struct foo_softc), + sizeof(struct foo_softc) }; static devclass_t foo_devclass; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message