From owner-freebsd-arch@FreeBSD.ORG Wed Sep 17 17:36:12 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46CBE16A4B3; Wed, 17 Sep 2003 17:36:12 -0700 (PDT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE69E43FE5; Wed, 17 Sep 2003 17:36:10 -0700 (PDT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 81769653D7; Thu, 18 Sep 2003 01:36:09 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19534-02; Thu, 18 Sep 2003 01:36:08 +0100 (BST) Received: from saboteur.dek.spc.org (lardystuffer.demon.co.uk [212.228.40.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id E548B653D0; Thu, 18 Sep 2003 01:36:01 +0100 (BST) Received: by saboteur.dek.spc.org (Postfix, from userid 1001) id 17BD339; Thu, 18 Sep 2003 01:35:56 +0100 (BST) Date: Thu, 18 Sep 2003 01:35:56 +0100 From: Bruce M Simpson To: Jeff Roberson Message-ID: <20030918003556.GA1025@saboteur.dek.spc.org> References: <20030917210236.GB75714@funkthat.com> <20030917201822.M55626-100000@mail.chesapeake.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030917201822.M55626-100000@mail.chesapeake.net> Organization: SPC cc: bms@spc.org cc: Poul-Henning Kamp cc: Robert Watson cc: freebsd-arch@freebsd.org cc: John-Mark Gurney cc: "M. Warner Losh" Subject: Re: devd limitations / automounting removable storage X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2003 00:36:12 -0000 On Wed, Sep 17, 2003 at 08:18:49PM -0400, Jeff Roberson wrote: > On Wed, 17 Sep 2003, John-Mark Gurney wrote: > > I was thinking about a more generic event posting mechanism, where > > modules can register to receive notifications when events came in. > > Please use kqueue. We should have 1 eventing mechanism in the kernel. Right now, the way devd/devctl works, it simply polls that device for changes. Interesting. Are you suggesting we ditch /dev/devctl and define event filters instead inside NEWBUS? Assuming kqueue can be made to play with SMP and that we can push Giant out of it this might not be such a bad idea. The routing daemon I've been working on (currently stalled due to other work) uses kqueue for all network and system event dispatch. I'm very happy with kqueue. BMS