From owner-freebsd-current  Sun Aug 27  1:25: 3 2000
Delivered-To: freebsd-current@freebsd.org
Received: from critter.freebsd.dk (beachchick.freebsd.dk [212.242.34.253])
	by hub.freebsd.org (Postfix) with ESMTP id D357D37B422
	for <current@freebsd.org>; Sun, 27 Aug 2000 01:24:58 -0700 (PDT)
Received: from critter (localhost [127.0.0.1])
	by critter.freebsd.dk (8.11.0/8.9.3) with ESMTP id e7R8OtN01228;
	Sun, 27 Aug 2000 10:24:55 +0200 (CEST)
	(envelope-from phk@critter.freebsd.dk)
To: Boris Popov <bp@butya.kz>
Cc: current@freebsd.org
Subject: Re: PATCH: devfs mkIII test & review please. 
In-Reply-To: Your message of "Sun, 27 Aug 2000 07:12:25 +0700."
             <Pine.BSF.4.10.10008270708410.608-100000@lion.butya.kz> 
Date: Sun, 27 Aug 2000 10:24:54 +0200
Message-ID: <1226.967364694@critter>
From: Poul-Henning Kamp <phk@critter.freebsd.dk>
Sender: owner-freebsd-current@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

In message <Pine.BSF.4.10.10008270708410.608-100000@lion.butya.kz>, Boris Popov
 writes:
>On Fri, 18 Aug 2000, Poul-Henning Kamp wrote:
>
>> Missing:
>>         Rename
>>         Subdirs.
>>         Close some race conditions using guaranteed atomic operations.
>>         Mountoption (ro ?) to prevent new devices from appearing in an instance.
>>         All uses of cdevsw_add() needs to be use devfs_clone() instead.
>
>	How should 3rd party KLDs implement cloning function ? For now it
>seems to be impossible to use a single binary for DEVFS and non-DEVFS
>case.

Once the code has been shaken out, the cloning stuff will be standard.

Right now I prefer to keep as much as possible under #ifdef DEVFS.

See kern/vfs_conf.c for another good reason (besides KLD) to make
the cloning stuff standard.

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD coreteam member | 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