]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/net/genetlink.h
net: genetlink: introduce dump info struct to be available during dumpit op
[linux.git] / include / net / genetlink.h
index 9292f1c588b7afe73c02c885301c8c706a5053a3..fb838f4b0089c538d77ac71f75ebf9df1c879da4 100644 (file)
@@ -127,6 +127,20 @@ enum genl_validate_flags {
        GENL_DONT_VALIDATE_DUMP_STRICT          = BIT(2),
 };
 
+/**
+ * struct genl_info - info that is available during dumpit op call
+ * @ops: generic netlink ops - for internal genl code usage
+ */
+struct genl_dumpit_info {
+       const struct genl_ops *ops;
+};
+
+static inline const struct genl_dumpit_info *
+genl_dumpit_info(struct netlink_callback *cb)
+{
+       return cb->data;
+}
+
 /**
  * struct genl_ops - generic netlink operations
  * @cmd: command identifier