From owner-freebsd-net Wed Nov 6 3:22:52 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C17737B401; Wed, 6 Nov 2002 03:22:51 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE4FB43E6E; Wed, 6 Nov 2002 03:22:50 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id gA6BMlpk001965; Wed, 6 Nov 2002 04:22:48 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 06 Nov 2002 04:22:33 -0700 (MST) Message-Id: <20021106.042233.54624374.imp@bsdimp.com> To: myevmenk@exodus.net, current@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: Netgraph and KQUEUE(2) From: "M. Warner Losh" In-Reply-To: References: <3DC82EB5.7974429D@exodus.net> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org : 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. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message