The project i'm working on might require some sort of
device cloning. The current way of cloning, i.e. use
DEVFS and allocate unique minor numbers, is not very
good for my purpose.
The idea is simple: the same device(major,minor) can
be opened several times by different processes (or
possibly threads within the same process) and each
process (thread) will have unique device instance.
Device driver will create new instance, every time
open() called. It will use D_TRACKCLOSE flag and
destroy instances in close().
What kind of information should i store to identify
each instance? Is/Will it be possible to identify a
single thread within a process? Is there any problems
with fork()? The support for the threads is optional.
I can live with single instance per process.
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message