Subject: Re: Getting file descriptor in driver ioctl method
To: Aaro J Koskinen <akoskine@cc.helsinki.fi>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-kern
Date: 05/09/2002 09:58:16
> You can implemented the file so that each opening of the file name
> opens a different "file" i.e. you can distinguish different openings
> from each other and store instance specific data to the vnode (think a
> normal file system, where an open file is removed from the name space,
> and then a new file is created with the same name, and that file is
> opened - they will not have the same vnode).

Well if I do this, it can be implemented as a real device, no need to
play with kernfs.

How would you do the different vnode per open trick? Would just removing
the vnode from spec hashchain be enough?

-- 
Emmanuel Dreyfus.
"Of course, it runs NetBSD" -- http://www.netbsd.org
manu@netbsd.org