From owner-cvs-all Mon Aug 16 5:19: 9 1999 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 46B2F14FBB; Mon, 16 Aug 1999 05:17:52 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.2) with ESMTP id OAA19050; Mon, 16 Aug 1999 14:15:30 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Brian Somers Cc: 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 11:45:19 BST." <199908161045.LAA76741@keep.lan.Awfulhak.org> Date: Mon, 16 Aug 1999 14:15:30 +0200 Message-ID: <19048.934805730@critter.freebsd.dk> From: Poul-Henning Kamp 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 ? -- 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! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message