[NETLINK]: Extend netlink messaging interface
authorThomas Graf <tgraf@suug.ch>
Sat, 5 Aug 2006 06:03:05 +0000 (23:03 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:53:43 +0000 (14:53 -0700)
commitfe4944e59c357f945f81bc67edb7ed1392e875ad
tree9634365d416ac574442fc7e21e1eaa26a71a26d1
parente1ef4bf23b1ced0bf78a1c98289f746486e5c912
[NETLINK]: Extend netlink messaging interface

Adds:
 nlmsg_get_pos()                 return current position in message
 nlmsg_trim()                    trim part of message
 nla_reserve_nohdr(skb, len)     reserve room for an attribute w/o hdr
 nla_put_nohdr(skb, len, data)   add attribute w/o hdr
 nla_find_nested()               find attribute in nested attributes

Fixes nlmsg_new() to take allocation flags and consider size.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
kernel/taskstats.c
net/netlink/attr.c
net/netlink/genetlink.c