> I ran into this same problem when modifying the vmmon VMWare driver for
> FreeBSD to support mulitple emulator instances. FreeBSD's VFS does not
> have a concept of stateful file access: there are open's and close's, but
> the VOP_READ/WRITE operations are not associated with sessions. This
[.....]
> There are a number of possible solutions to this problem, including the
[.....]
> My preferred solution, and I actually hacked around with a kernel a bit to
> do this, is to make the VFS provide (optional) stateful vnode sessions.
> vop_open() would gain an additional call-by-reference argument, probably a
> void**. When NULL, the caller would be requesting a stateless vnode open,
[.....]
> My changes are incomplete as I was working on it on the plane, and
> comments on the idea would be welcome. One thing this would allow is for
[.....]
I think this is something that BSD lacks big-time. It simplifies the
way userland opens devices and should be fairly easy to implement.
If you haven't got time, I'd be willing to pick this up. Do you have
anything worth sending me (patches) ?
Cheers.
> Robert N M Watson
>
> [EMAIL PROTECTED] http://www.watson.org/~robert/
> PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1
> TIS Labs at Network Associates, Safeport Network Services
--
Brian <[EMAIL PROTECTED]> <brian@[uk.]FreeBSD.org>
<http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message