From owner-freebsd-hackers Fri Jan 3 07:37:48 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA27482 for hackers-outgoing; Fri, 3 Jan 1997 07:37:48 -0800 (PST) Received: from bacall.lodgenet.com (bacall.lodgenet.com [205.138.147.242]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id HAA27475 for ; Fri, 3 Jan 1997 07:37:45 -0800 (PST) Received: (from mail@localhost) by bacall.lodgenet.com (8.6.12/8.6.12) id JAA05997 for ; Fri, 3 Jan 1997 09:36:00 -0600 Received: from garbo.lodgenet.com(204.124.123.250) by bacall via smap (V1.3) id sma005993; Fri Jan 3 09:35:55 1997 Received: from jake.lodgenet.com (jake.lodgenet.com [10.0.11.30]) by garbo.lodgenet.com (8.6.12/8.6.9) with ESMTP id JAA03040 for ; Fri, 3 Jan 1997 09:36:34 -0600 Received: from jake.lodgenet.com (localhost [127.0.0.1]) by jake.lodgenet.com (8.8.4/8.6.12) with ESMTP id JAA16890 for ; Fri, 3 Jan 1997 09:36:57 -0600 (CST) Message-Id: <199701031536.JAA16890@jake.lodgenet.com> X-Mailer: exmh version 2.0beta 12/23/96 To: hackers@freebsd.org Subject: device driver initialization Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 03 Jan 1997 09:36:56 -0600 From: "Eric L. Hernes" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Howdy, It looks like most of the ISA drivers now days have a frag like: SYSINIT(foo,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,foo_drvinit,NULL) foo_drvinit(void *nothing){ static int foo_devsw_installed=0; dev_t dev; if (! foo_devsw_installed ) { dev = makedev(CDEV_MAJOR, 0); cdevsw_add(&dev, &foo_cdevsw, NULL); foo_devsw_installed = 1; } } Is there any reason that this can't be absorbed in the attach function, somewhere around where the devfs stuff is done? What's the reason for adding yet another entry point during re-boot. Isn't probe/attach enough? eric. -- erich@lodgenet.com http://rrnet.com/~erich erich@rrnet.com