From owner-freebsd-current Tue Nov 5 12:49: 7 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 21EB637B401; Tue, 5 Nov 2002 12:49:05 -0800 (PST) Received: from scl8owa02.int.exodus.net (scl8out02.exodus.net [66.35.230.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC95043E75; Tue, 5 Nov 2002 12:48:54 -0800 (PST) (envelope-from Maksim.Yevmenkin@exodus.net) Received: from scl8owa01.int.exodus.net ([66.35.230.241]) by scl8owa02.int.exodus.net with Microsoft SMTPSVC(5.0.2195.5329); Tue, 5 Nov 2002 12:48:54 -0800 Received: from exodus.net ([206.220.227.147]) by scl8owa01.int.exodus.net over TLS secured channel with Microsoft SMTPSVC(5.0.2195.5329); Tue, 5 Nov 2002 12:48:54 -0800 Message-ID: <3DC82EB5.7974429D@exodus.net> Date: Tue, 05 Nov 2002 12:48:53 -0800 From: Maksim Yevmenkin X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: current@freebsd.org, net@freebsd.org Cc: Julian Elischer Subject: Netgraph and KQUEUE(2) References: <3DC82927.7200233B@exodus.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Nov 2002 20:48:54.0367 (UTC) FILETIME=[C0FC7EF0:01C2850C] 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 Dear Hackers, I would like to get some feedback on the idea i have. Basically i would like Netgraph system to send kevents whenever something happens. For example: 1) node X of type Y was created/destroyed 2) hook X was connected/disconnected to/from node Y 3) Data passed via hook X 4) Node X got message Y etc. Right now i can think of two scenarios where this could be useful. 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.) 2) ngdump - "tcpdump" for Netgraph. Dumps everything that happens in the Netgraph. what do you think? thanks, max To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message