From owner-freebsd-current Sat Nov 9 13:37:28 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F53837B401 for ; Sat, 9 Nov 2002 13:37:27 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8069143E3B for ; Sat, 9 Nov 2002 13:37:26 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id gA9LbDOr096041; Sat, 9 Nov 2002 22:37:14 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Takanori Watanabe Cc: current@freebsd.org Subject: Re: getting rid of devfs... In-Reply-To: Your message of "Sun, 10 Nov 2002 06:26:40 +0900." <200211092126.GAA10577@axe-inc.co.jp> Date: Sat, 09 Nov 2002 22:37:13 +0100 Message-ID: <96040.1036877833@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200211092126.GAA10577@axe-inc.co.jp>, Takanori Watanabe writes: >In message <64608.1036834305@critter.freebsd.dk>, Poul-Henning Kamp wrote: > >>DEVFS: > >> 3. major/minors will be dynamically assigned. > >So we will need file to list node id list in printf(9) format, >instead of /sys/conf/majors. I am not sure about this... [1] >And more better if we generate device name #define or array of >string from the file. This will help us implementing loading >module when an user process attempt to open some nodes that >owned by unloaded modules. and even less about this... [2] That said, just because I don't like it doesn't mean that people should try to prototype it and see if I'm wrong... Poul-Henning [1] A major part of the drive behind DEVFS is to avoiding the need to register device drivers in a magic, global file. I will agree that it is an predictable outcome that one day two drivers will both try to be /dev/foo but he, they get to haggle that one out for themselves. [2] I simply cannot see us kldload'ing stuff in response to ls -l /dev/watchthis (This is a trick answer: The point is that at VOP_LOOKUP time where the device cloning runs, you don't know for what operation the VOP_LOOKUP is called: stat, open, remove, rename... (Well, some of them you do, but not the interesting ones). -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message