summaryrefslogtreecommitdiff
path: root/include/rdma/rdma_netlink.h
diff options
context:
space:
mode:
authorKaike Wan <kaike.wan@intel.com>2015-08-14 15:52:07 +0300
committerDoug Ledford <dledford@redhat.com>2015-08-31 01:12:25 +0300
commitbc10ed7d3d19ff61427007b4d7bf98d3e57bb333 (patch)
tree09a72a78b792581042bdd4cd31855a0370a01f8f /include/rdma/rdma_netlink.h
parent6431eb87065ffd24dfc7c0b6954e80a4eb74e177 (diff)
downloadlinux-bc10ed7d3d19ff61427007b4d7bf98d3e57bb333.tar.xz
IB/core: Add rdma netlink helper functions
This patch adds a function to check if listeners for a netlink multicast group are present. It also adds a function to receive netlink response messages. Signed-off-by: Kaike Wan <kaike.wan@intel.com> Signed-off-by: John Fleck <john.fleck@intel.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/rdma_netlink.h')
-rw-r--r--include/rdma/rdma_netlink.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rdma/rdma_netlink.h b/include/rdma/rdma_netlink.h
index 0790882e0c9b..585266144329 100644
--- a/include/rdma/rdma_netlink.h
+++ b/include/rdma/rdma_netlink.h
@@ -77,4 +77,11 @@ int ibnl_unicast(struct sk_buff *skb, struct nlmsghdr *nlh,
int ibnl_multicast(struct sk_buff *skb, struct nlmsghdr *nlh,
unsigned int group, gfp_t flags);
+/**
+ * Check if there are any listeners to the netlink group
+ * @group: the netlink group ID
+ * Returns 0 on success or a negative for no listeners.
+ */
+int ibnl_chk_listeners(unsigned int group);
+
#endif /* _RDMA_NETLINK_H */