From owner-cvs-all Mon Aug 16 18:27:41 1999 Delivered-To: cvs-all@freebsd.org Received: from awfulhak.org (dynamic-103.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.103]) by hub.freebsd.org (Postfix) with ESMTP id C1F5715538; Mon, 16 Aug 1999 18:27:24 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (root@keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id OAA15859; Mon, 16 Aug 1999 14:10:48 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id OAA77853; Mon, 16 Aug 1999 14:13:09 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199908161313.OAA77853@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Poul-Henning Kamp Cc: Brian Somers , Dag-Erling Smorgrav , Julian Elischer , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/miscfs/specfs spec_vnops.c src/sys/sys conf.h In-reply-to: Your message of "Mon, 16 Aug 1999 14:15:30 +0200." <19048.934805730@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 16 Aug 1999 14:13:09 +0100 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > In message <199908161045.LAA76741@keep.lan.Awfulhak.org>, Brian Somers writes: > >> Brian Somers writes: > >> > From what I can tell, this requires that the driver ignores the minor > >> > number ('cos it's the same for all accesses) but keeps a track of of > >> > the process id in the device structure. The driver would need to > >> > know about fork()s and *all* close()s, and would probably need to > >> > use something faster than `sequential' to find the device structure > >> > from the pid (some sort of hash). > >> > >> What if the same process needs several instances of the same device? > > > >Yes - it would need to know about dup*() too and would have to store > >an instance number as well as the processid. It's definitely > >non-trivial. > > You guys lost me here... What are we discussing now ? Just chewing the cud about being able to open /dev/XXX and get a unique allocated-on-the-fly instance of the device. Thinking about things more.... maybe the driver just has to figure out the global descriptor table offset involved and use that to figure out what device structure is required. > -- > Poul-Henning Kamp FreeBSD coreteam member > phk@FreeBSD.ORG "Real hackers run -current on their laptop." > FreeBSD -- It will take a long time before progress goes too far! > -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message