From owner-freebsd-hackers Wed Jul 31 11:25: 9 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0361837B400 for ; Wed, 31 Jul 2002 11:25:01 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F46644126 for ; Wed, 31 Jul 2002 10:56:58 -0700 (PDT) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g6VHubHw030709 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 31 Jul 2002 19:56:40 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g6VHuaFJ094137 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 31 Jul 2002 19:56:37 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g6VHtD9e094127; Wed, 31 Jul 2002 19:55:13 +0200 (CEST)?g (envelope-from ticso) Date: Wed, 31 Jul 2002 19:55:13 +0200 From: Bernd Walter To: Daniel Lundqvist Cc: David Malone , Terry Lambert , freebsd-hackers@FreeBSD.ORG Subject: Re: select()/poll() i kernel. Message-ID: <20020731175512.GD93323@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <20020730152514.GA66448@malarhojden.nu> <3D471152.4347ABD1@mindspring.com> <20020731163057.GB72029@malarhojden.nu> <20020731164914.GA32252@walton.maths.tcd.ie> <20020731171658.GC72029@malarhojden.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020731171658.GC72029@malarhojden.nu> X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jul 31, 2002 at 07:17:08PM +0200, Daniel Lundqvist wrote: > On Wed, Jul 31, 2002 at 05:49:14PM +0100, David Malone wrote: > > On Wed, Jul 31, 2002 at 06:30:57PM +0200, Daniel Lundqvist wrote: > > > If anyone has a better solution to this I'm all ears. > > > > Couldn't you do all this in userland and use a unix domain socket > > for communication between your clients and your master process? Then > > you could use select/poll/kqueue normally. > > That is one idea. But part of what I want to do is to skip as much copy to > userspace where there is no interested applications as possible. For the thing > I'm gonna use it for I expect it to be a quite busy message bus. > > Maybe the gain in the end is not that big,but I wont know until I tried it :) See struct socket so_upcall and so_upcallarg. You may also want to look at netgraph framework for processing network data in the kernel. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message