Date: Mon, 10 Jun 2002 14:13:47 -0700 (PDT) From: Maksim Yevmenkin <m_evmenkin@yahoo.com> To: current@freebsd.org Subject: Device cloning Message-ID: <20020610211347.71117.qmail@web13305.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hackers, 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. thanks, max __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020610211347.71117.qmail>