From owner-freebsd-current Fri Jun 14 14: 6: 6 2002 Delivered-To: freebsd-current@freebsd.org Received: from web13307.mail.yahoo.com (web13307.mail.yahoo.com [216.136.175.43]) by hub.freebsd.org (Postfix) with SMTP id 8534337B40E for ; Fri, 14 Jun 2002 14:06:02 -0700 (PDT) Message-ID: <20020614210102.84658.qmail@web13307.mail.yahoo.com> Received: from [165.193.27.35] by web13307.mail.yahoo.com via HTTP; Fri, 14 Jun 2002 14:01:02 PDT Date: Fri, 14 Jun 2002 14:01:02 -0700 (PDT) From: Maksim Yevmenkin Subject: Re: Device cloning To: Mark Santcroos Cc: current@FreeBSD.ORG In-Reply-To: <20020614202921.GA353@laptop.6bone.nl> 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 Hi Mark, > On Tue, Jun 11, 2002 at 10:14:48AM -0700, Maksim Yevmenkin wrote: > > 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 :) > > A ng_device netgraph node is coming up. > That will present you with a /dev/ interface to the > netgraph subsystem. > That might be a starting point, as your work is also a netgraph node. Yeah, i know. I think, i have the source. It is most likely outdated. In the version i have you create a new device entry per hook, but what i really wanted is one device per node with ability to clone devices. I.e. two (or more) things open /dev/foo and each of them get unique private context within node. Since it is not going to work anyway, i will stick to multiple hooks idea which would fit perfectly into ng_device interface. 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