Subject: Re: making all fd's point at vnodes?
To: Bill Sommerfeld <>
From: Bill Studenmund <>
List: tech-kern
Date: 06/18/2001 11:03:57
On Sun, 17 Jun 2001, Bill Sommerfeld wrote:

> > >  4) tweak the VOP_READ() and VOP_WRITE() function signatures (to
> > > resemble the current vn_read signature), eliminating the flag and lock
> > > juggling done at the vn_read() level.
> > 
> > Where would the locking happen? Directly in sys_read()/sys_write() ?
> No, in VOP_READ/VOP_WRITE unless IO_NODELOCKED was set.

So we'd be changing the locking semantics of VOP_READ & VOP_WRITE? I don't
think that's a good idea. If we put "vnodes" into file descriptors, I
think we should just put the locking there too. (sockets and pipes can
have nops for lock/unlock routines)

Take care,