From owner-freebsd-current Tue Jun 11 11:52:22 2002 Delivered-To: freebsd-current@freebsd.org Received: from snipe.mail.pas.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id 1637937B407 for ; Tue, 11 Jun 2002 11:52:19 -0700 (PDT) Received: from pool0380.cvx21-bradley.dialup.earthlink.net ([209.179.193.125] helo=mindspring.com) by snipe.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17HqkZ-00053j-00; Tue, 11 Jun 2002 11:52:16 -0700 Message-ID: <3D0646BB.E427C4DB@mindspring.com> Date: Tue, 11 Jun 2002 11:51:39 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Maksim Yevmenkin Cc: Harti Brandt , current@FreeBSD.ORG Subject: Re: Device cloning References: <20020611171448.77703.qmail@web13305.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Maksim Yevmenkin wrote: > I'm sorry people :) I should have been more specific. Here is > what i meant. I'm working on Bluetooth stack for FreeBSD. Everything > is implemented in Netgraph. The real device driver nodes are connected > to HCI layer. You can talk to any Bluetooth device via HCI layer. It > does not really matter what kind of device you have, PC-CARD, serial > or USB dongle. They all MUST talk via HCI. So HCI is not really a > device driver, and, IMO, it is not a pseudo device driver. It sort > of looks like /dev/tcp :) Ah. You have a device which is an addressable bus. Yes, if cloning worked, it would be the best way to implement it. The typical BSD way of dealing with this would probably be to create a socket interface. The problem with a socket interface is that you woun't be able to run standard protocols over top of your HCI, unless you (re)implement them as netgraph nodes (e.g. like a "/dev/tcp" with a streams stack pushed on it). I think that your current Netgraph approach is probably the best one available to you, if you want to avoid additional plumbing work. Good luck on your work, it sounds interesting! -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message