> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to