Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelv...
[deliverable/linux.git] / include / net / netlink.h
index eddb50289d6d12b8cb8a234c373f8574a0cb5562..007bdb07dabb22f9aabc1e9014a55440de86769b 100644 (file)
@@ -939,6 +939,15 @@ static inline u64 nla_get_u64(const struct nlattr *nla)
        return tmp;
 }
 
+/**
+ * nla_get_be64 - return payload of __be64 attribute
+ * @nla: __be64 netlink attribute
+ */
+static inline __be64 nla_get_be64(const struct nlattr *nla)
+{
+       return *(__be64 *) nla_data(nla);
+}
+
 /**
  * nla_get_flag - return payload of flag attribute
  * @nla: flag netlink attribute
This page took 0.024369 seconds and 5 git commands to generate.