From owner-freebsd-arch Mon Jan 29 6: 2:41 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mobile.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 40DEC37B402 for ; Mon, 29 Jan 2001 06:02:24 -0800 (PST) Received: from netplex.com.au (localhost [127.0.0.1]) by mobile.wemm.org (8.11.1/8.11.1) with ESMTP id f0TE2A451479; Mon, 29 Jan 2001 06:02:10 -0800 (PST) (envelope-from peter@netplex.com.au) Message-Id: <200101291402.f0TE2A451479@mobile.wemm.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Brian Somers Cc: freebsd-arch@FreeBSD.ORG Subject: Re: Cloned open support In-Reply-To: <200101291052.f0TAqVK58112@storm.FreeBSD.org.uk> Date: Mon, 29 Jan 2001 06:02:10 -0800 From: Peter Wemm Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Somers wrote: > Hi, > > I'm considering having a crack at adding support for cloned opens. > Before I start, I guess I've got two questions: > > 1. Is anybody else doing this. > > 2. Given that I'll need to change the d_open prototype (and > thus cdevsw), I'm going to affect every device driver in the > tree - although only changing the first arg to a (dev_t) > pointer, making things pretty easy to change and not too > unexpected for anyone that's written sysv drivers. Not necessary. dev_t *is* a pointer. Add a flag to the device flags to indicate that it allows clone opens, and maybe teach specfs a little about it (ie: that the unit will be reassigned on a clone open) and you're done. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message