From owner-freebsd-hackers Wed Jul 31 12:54:16 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 400BE37B401 for ; Wed, 31 Jul 2002 12:54:12 -0700 (PDT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 2D07D43E6E for ; Wed, 31 Jul 2002 12:52:57 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 31 Jul 2002 20:52:46 +0100 (BST) To: Daniel Lundqvist Cc: Terry Lambert , freebsd-hackers@freebsd.org Subject: Re: select()/poll() i kernel. In-reply-to: Your message of "Wed, 31 Jul 2002 19:17:08 +0200." <20020731171658.GC72029@malarhojden.nu> X-Request-Do: Date: Wed, 31 Jul 2002 20:52:41 +0100 From: David Malone Message-ID: <200207312052.aa63268@salmon.maths.tcd.ie> 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 > 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. If you want to avoid the whole copy and the data that you want will be at the start of the buffer, you could try using recv with the MSG_PEEK flag to just get as much of the packet as you need to determine if you want the whole message. Mind you, that's probably more odd than doing it in the kernel ;-) David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message