From owner-freebsd-current Wed Nov 6 10: 0:34 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CEE437B401; Wed, 6 Nov 2002 10:00:33 -0800 (PST) Received: from InterJet.elischer.org (12-232-206-8.client.attbi.com [12.232.206.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BDFD43E4A; Wed, 6 Nov 2002 10:00:33 -0800 (PST) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id JAA01078; Wed, 6 Nov 2002 09:43:51 -0800 (PST) Date: Wed, 6 Nov 2002 09:43:50 -0800 (PST) From: Julian Elischer To: "M. Warner Losh" Cc: myevmenk@exodus.net, current@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: Netgraph and KQUEUE(2) In-Reply-To: <20021106.042233.54624374.imp@bsdimp.com> Message-ID: 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 On Wed, 6 Nov 2002, M. Warner Losh wrote: > : 1) Device driver in Netgraph node. When hardware is > : activated new Netgraph node is created and new > : kevent sent. devd (or something like devd) listens > : for these events and does something (loads firmware, > : activates device, etc.) > > Device drivers are not netgraph nodes. They will have a device_t > associated with them, which already sends a message via /dev/devctl to > devd. You can do anything you want with the results. There's no need > to reinvent the wheel that I'm almost done inventing. There's > absolutely no need to bring netgraph into it all, and doing so makes > it a less generic implementation. devices that are netgraph nodes may not have any entry in /dev and might only appear in the netgraph namespace.. e.g. if_ar.c if_sr.c > > Warner > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message