[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <E1IsUCd-0005f4-00@gondolin.me.apana.org.au>
Date: Thu, 15 Nov 2007 10:11:35 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: davem@...emloft.net (David Miller)
Cc: drepper@...hat.com, netdev@...r.kernel.org
Subject: Re: network interface state
David Miller <davem@...emloft.net> wrote:
>
>> BTW, is it possible to send both these requests out before starting to
>> read the results? This would reduce the amount of code quite a bit.
>
> Unfortunately, that won't work. Like datagram protocols,
> netlink assumes one message per sendmsg() call.
Actually netlink packets come with headers so we do allow chaining.
See netlink_rcv_skb for details.
We don't make use of that on recvmsg() though although theoretically
user-space is supposed to be ready to handle that too.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists