From owner-freebsd-current Tue Nov 5 14:45: 6 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 01B4B37B401; Tue, 5 Nov 2002 14:45:05 -0800 (PST) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6189543E77; Tue, 5 Nov 2002 14:45:04 -0800 (PST) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id OAA37163; Tue, 5 Nov 2002 14:32:19 -0800 (PST) Received: from arch20m.dellroad.org (localhost [127.0.0.1]) by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id gA5MVuZE040318; Tue, 5 Nov 2002 14:31:56 -0800 (PST) (envelope-from archie@arch20m.dellroad.org) Received: (from archie@localhost) by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id gA5MVuJB040317; Tue, 5 Nov 2002 14:31:56 -0800 (PST) From: Archie Cobbs Message-Id: <200211052231.gA5MVuJB040317@arch20m.dellroad.org> Subject: Re: Netgraph and KQUEUE(2) In-Reply-To: <3DC82EB5.7974429D@exodus.net> "from Maksim Yevmenkin at Nov 5, 2002 12:48:53 pm" To: Maksim Yevmenkin Date: Tue, 5 Nov 2002 14:31:56 -0800 (PST) Cc: current@FreeBSD.ORG, net@FreeBSD.ORG, Julian Elischer X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Maksim Yevmenkin writes: > 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 This would be nice, but what does kqueue() really have to do with it? I.e., why not just allow the creation of a ng_monitor(4) (or whatever you want to call it) node, which would send out event report messages to whomever connected to it. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message