netlink: add a start callback for starting a netlink dump
authorTom Herbert <tom@herbertland.com>
Tue, 15 Dec 2015 23:41:37 +0000 (15:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2017 10:20:46 +0000 (11:20 +0100)
commit142afbc6b2f33832f332ce5b561aa817edfff0b4
treee1aafbe5f172b7a44fd38a084083d9bf54910228
parentb42518053ffd221d79cff2df8c0257db88a71334
netlink: add a start callback for starting a netlink dump

commit fc9e50f5a5a4e1fa9ba2756f745a13e693cf6a06 upstream.

The start callback allows the caller to set up a context for the
dump callbacks. Presumably, the context can then be destroyed in
the done callback.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/netlink.h
include/net/genetlink.h
net/netlink/af_netlink.c
net/netlink/genetlink.c