aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/netlink_diag.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2013-04-17 06:47:04 +0000
committerDavid S. Miller <davem@davemloft.net>2013-04-19 14:57:58 -0400
commitf9c2288837ba072b21dba955f04a4c97eaa77b1e (patch)
treec02c28e33176fc82b8fd560b3a850351b28617e2 /include/uapi/linux/netlink_diag.h
parentnetlink: implement memory mapped sendmsg() (diff)
downloadlinux-dev-f9c2288837ba072b21dba955f04a4c97eaa77b1e.tar.xz
linux-dev-f9c2288837ba072b21dba955f04a4c97eaa77b1e.zip
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>
Diffstat (limited to 'include/uapi/linux/netlink_diag.h')
0 files changed, 0 insertions, 0 deletions