summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_nla.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-06-10 14:57:26 +0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 19:57:45 +0400
commit01b39b50d34733646fe46a582fa60d3b53f6180d (patch)
tree1602650bce908e1b65b656070be7473948001255 /drivers/block/drbd/drbd_nla.h
parent7c3063cc6f0e75cdf312f5f318f9a4c02e460397 (diff)
downloadlinux-01b39b50d34733646fe46a582fa60d3b53f6180d.tar.xz
drbd: Split off netlink mandatory attribute handling into separate file
Duplicate this file in the kernel module and in user space; both sides need it. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_nla.h')
-rw-r--r--drivers/block/drbd/drbd_nla.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_nla.h b/drivers/block/drbd/drbd_nla.h
new file mode 100644
index 000000000000..679c2d5b4535
--- /dev/null
+++ b/drivers/block/drbd/drbd_nla.h
@@ -0,0 +1,8 @@
+#ifndef __DRBD_NLA_H
+#define __DRBD_NLA_H
+
+extern int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla,
+ const struct nla_policy *policy);
+extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype);
+
+#endif /* __DRBD_NLA_H */