diff options
author | Tom Herbert <tom@herbertland.com> | 2015-12-15 15:41:37 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-15 23:25:20 -0500 |
commit | fc9e50f5a5a4e1fa9ba2756f745a13e693cf6a06 (patch) | |
tree | 168120764bcdbba0aad5859c9044f7dd84eb4350 /include/linux/netlink.h | |
parent | 3502cad73c4bbf8f6365d539e814159275252c59 (diff) | |
download | op-kernel-dev-fc9e50f5a5a4e1fa9ba2756f745a13e693cf6a06.zip op-kernel-dev-fc9e50f5a5a4e1fa9ba2756f745a13e693cf6a06.tar.gz |
netlink: add a start callback for starting a netlink dump
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>
Diffstat (limited to 'include/linux/netlink.h')
-rw-r--r-- | include/linux/netlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 639e9b8..0b41959 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h @@ -131,6 +131,7 @@ netlink_skb_clone(struct sk_buff *skb, gfp_t gfp_mask) struct netlink_callback { struct sk_buff *skb; const struct nlmsghdr *nlh; + int (*start)(struct netlink_callback *); int (*dump)(struct sk_buff * skb, struct netlink_callback *cb); int (*done)(struct netlink_callback *cb); @@ -153,6 +154,7 @@ struct nlmsghdr * __nlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, int type, int len, int flags); struct netlink_dump_control { + int (*start)(struct netlink_callback *); int (*dump)(struct sk_buff *skb, struct netlink_callback *); int (*done)(struct netlink_callback *); void *data; |