From owner-cvs-all Mon Aug 16 5: 1: 0 1999 Delivered-To: cvs-all@freebsd.org Received: from awfulhak.org (dynamic-58.max2-du-ws.dialnetwork.pavilion.co.uk [212.74.8.186]) by hub.freebsd.org (Postfix) with ESMTP id EDA29154DA; Mon, 16 Aug 1999 05:00:44 -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 LAA15480; Mon, 16 Aug 1999 11:43:02 +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 LAA76741; Mon, 16 Aug 1999 11:45:19 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199908161045.LAA76741@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Dag-Erling Smorgrav Cc: Brian Somers , Poul-Henning Kamp , 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 "16 Aug 1999 11:11:06 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 16 Aug 1999 11:45:19 +0100 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > 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. > DES > -- > Dag-Erling Smorgrav - des@flood.ping.uio.no > -- 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