From owner-freebsd-hackers Wed Jul 19 16:06:48 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id QAA15726 for hackers-outgoing; Wed, 19 Jul 1995 16:06:48 -0700 Received: from tserv.lodgenet.com (dial16.iw.net [204.157.148.65]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id QAA15698 for ; Wed, 19 Jul 1995 16:05:22 -0700 Received: from jake.lodgenet.com (jake.lodgenet.com [204.124.120.30]) by tserv.lodgenet.com (8.6.12/8.6.12) with ESMTP id SAA16068 for ; Wed, 19 Jul 1995 18:05:11 -0500 Received: from localhost (localhost [127.0.0.1]) by jake.lodgenet.com (8.6.11/8.6.9) with SMTP id SAA15650 for ; Wed, 19 Jul 1995 18:05:16 -0500 Message-Id: <199507192305.SAA15650@jake.lodgenet.com> X-Authentication-Warning: jake.lodgenet.com: Host localhost didn't use HELO protocol X-Mailer: exmh version 1.6 4/21/95 To: hackers@freebsd.org Subject: lkm device drivers and dev_attach() Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 19 Jul 1995 18:05:15 -0500 From: "Eric L. Hernes" Sender: hackers-owner@freebsd.org Precedence: bulk Is there a problem with calling dev_attach() from within an lkm? I have a stub driver which will compile either from the config/make scheme or from an lkm. When I use the lkm method, an lsdev reports my device as the only one. Is this because my probe/attach isn't being called from config_isadev(), and so the list of devices is getting replaced by my single list. How can I correct this? should I #ifdef LKM around the dev_attach()? eric. -- erich@lodgenet.com erich@rrnet.com