aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netlink.h
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-10-07 20:16:22 -0700
committerDavid S. Miller <davem@davemloft.net>2018-10-08 10:39:03 -0700
commit4a19edb60d0203cd5bf95a8b46ea8f63fd41194c (patch)
tree741909355e9359619927e90759c0f0d354c4680c /include/linux/netlink.h
parentisdn/gigaset: mark expected switch fall-throughs (diff)
downloadlinux-dev-4a19edb60d0203cd5bf95a8b46ea8f63fd41194c.tar.xz
linux-dev-4a19edb60d0203cd5bf95a8b46ea8f63fd41194c.zip
netlink: Pass extack to dump handlers
Declare extack in netlink_dump and pass to dump handlers via netlink_callback. Add any extack message after the dump_done_errno allowing error messages to be returned. This will be useful when strict checking is done on dump requests, returning why the dump fails EINVAL. Signed-off-by: David Ahern <dsahern@gmail.com> Acked-by: Christian Brauner <christian@brauner.io> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netlink.h')
-rw-r--r--include/linux/netlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h
index 71f121b66ca8..88c8a2d83eb3 100644
--- a/include/linux/netlink.h
+++ b/include/linux/netlink.h
@@ -176,6 +176,7 @@ struct netlink_callback {
void *data;
/* the module that dump function belong to */
struct module *module;
+ struct netlink_ext_ack *extack;
u16 family;
u16 min_dump_alloc;
unsigned int prev_seq, seq;