Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2002 20:52:41 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Daniel Lundqvist <daniel@malarhojden.nu>
Cc:        Terry Lambert <tlambert2@mindspring.com>, freebsd-hackers@freebsd.org
Subject:   Re: select()/poll() i kernel. 
Message-ID:   <200207312052.aa63268@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Wed, 31 Jul 2002 19:17:08 %2B0200." <20020731171658.GC72029@malarhojden.nu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200207312052.aa63268>