[NETLINK]: allocate group bitmaps dynamically
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 18 Jul 2007 22:46:06 +0000 (15:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2007 22:46:06 +0000 (15:46 -0700)
commitb4ff4f0419ae5db83553fab79d03a89c10d540a8
tree17695af46692c31ec1f33ffb68bc686064227913
parentc81de6addb913423acef6e692fd70688180ab5dd
[NETLINK]: allocate group bitmaps dynamically

Allow changing the number of groups for a netlink family
after it has been created, use RCU to protect the listeners
bitmap keeping netlink_has_listeners() lock-free.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Patrick McHardy <kaber@trash.net>
Acked-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h
net/netlink/af_netlink.c