From owner-freebsd-hackers Tue Oct 7 19:33:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA11066 for hackers-outgoing; Tue, 7 Oct 1997 19:33:59 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA11055 for ; Tue, 7 Oct 1997 19:33:57 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id TAA03305; Tue, 7 Oct 1997 19:22:27 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd003302; Wed Oct 8 02:22:20 1997 Message-ID: <343AEE19.1F567D97@whistle.com> Date: Tue, 07 Oct 1997 19:21:13 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Joerg Wunsch CC: freebsd-hackers@FreeBSD.ORG, mdean Subject: Re: Device Drivers References: <19971008000403.RT08354@uriah.heep.sax.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk J Wunsch wrote: > > and why does d_maj=-1 in the driver when I would think you need to set it > > to the major of your device. > > Dynamic major # assignment. The ultimate goal once devfs is running > completely, but currently probably not very useful. > It's set when your driver adds the entry into the table. eventually the position in the table will be dynamic, so current code is already acting as if it was. (so we don't have to fix it when it goes dynamic.)