netlink: add netlink_dump_control structure for netlink_dump_start()
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 24 Feb 2012 14:30:15 +0000 (14:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Feb 2012 19:10:06 +0000 (14:10 -0500)
commit80d326fab534a5380e8f6e509a0b9076655a9670
tree57c636de934b3f8abb7db9bcde64360ecc4eaf66
parent48e316bc2e045206248c6c75c0d5bbc0c9ddc32c
netlink: add netlink_dump_control structure for netlink_dump_start()

Davem considers that the argument list of this interface is getting
out of control. This patch tries to address this issue following
his proposal:

struct netlink_dump_control c = { .dump = dump, .done = done, ... };

netlink_dump_start(..., &c);

Suggested by David S. Miller.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 files changed:
crypto/crypto_user.c
drivers/infiniband/core/netlink.c
include/linux/netlink.h
net/core/rtnetlink.c
net/ipv4/inet_diag.c
net/netfilter/ipset/ip_set_core.c
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nfnetlink_acct.c
net/netlink/af_netlink.c
net/netlink/genetlink.c
net/unix/diag.c
net/xfrm/xfrm_user.c