alistair23-linux/net/netlink
Patrick McHardy f9c2288837 netlink: implement memory mapped recvmsg()
Add support for mmap'ed recvmsg(). To allow the kernel to construct messages
into the mapped area, a dataless skb is allocated and the data pointer is
set to point into the ring frame. This means frames will be delivered to
userspace in order of allocation instead of order of transmission. This
usually doesn't matter since the order is either not determinable by
userspace or message creation/transmission is serialized. The only case
where this can have a visible difference is nfnetlink_queue. Userspace
can't assume mmap'ed messages have ordered IDs anymore and needs to check
this if using batched verdicts.

For non-mapped sockets, nothing changes.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-04-19 14:57:58 -04:00
..
af_netlink.c netlink: implement memory mapped recvmsg() 2013-04-19 14:57:58 -04:00
af_netlink.h netlink: mmaped netlink: ring setup 2013-04-19 14:57:57 -04:00
diag.c netlink: Diag core and basic socket info dumping (v2) 2013-03-21 12:38:03 -04:00
genetlink.c genetlink: trigger BUG_ON if a group name is too long 2013-03-20 12:05:51 -04:00
Kconfig netlink: Diag core and basic socket info dumping (v2) 2013-03-21 12:38:03 -04:00
Makefile netlink: Diag core and basic socket info dumping (v2) 2013-03-21 12:38:03 -04:00