From owner-freebsd-current Mon Jun 10 14:14: 0 2002 Delivered-To: freebsd-current@freebsd.org Received: from web13305.mail.yahoo.com (web13305.mail.yahoo.com [216.136.175.41]) by hub.freebsd.org (Postfix) with SMTP id 1A28637B40B for ; Mon, 10 Jun 2002 14:13:48 -0700 (PDT) Message-ID: <20020610211347.71117.qmail@web13305.mail.yahoo.com> Received: from [206.220.224.4] by web13305.mail.yahoo.com via HTTP; Mon, 10 Jun 2002 14:13:47 PDT Date: Mon, 10 Jun 2002 14:13:47 -0700 (PDT) From: Maksim Yevmenkin Subject: Device cloning To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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