Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 1999 14:15:30 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        Dag-Erling Smorgrav <des@flood.ping.uio.no>, Julian Elischer <julian@whistle.com>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/miscfs/specfs spec_vnops.c src/sys/sys conf.h 
Message-ID:  <19048.934805730@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 16 Aug 1999 11:45:19 BST." <199908161045.LAA76741@keep.lan.Awfulhak.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199908161045.LAA76741@keep.lan.Awfulhak.org>, Brian Somers writes:
>> Brian Somers <brian@Awfulhak.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19048.934805730>