Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 1999 11:45:19 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Dag-Erling Smorgrav <des@flood.ping.uio.no>
Cc:        Brian Somers <brian@Awfulhak.org>, Poul-Henning Kamp <phk@critter.freebsd.dk>, 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:  <199908161045.LAA76741@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "16 Aug 1999 11:11:06 %2B0200." <xzpr9l4rsyd.fsf@flood.ping.uio.no> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.

> DES
> -- 
> Dag-Erling Smorgrav - des@flood.ping.uio.no
> 

-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>




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?199908161045.LAA76741>