summaryrefslogtreecommitdiff
path: root/include/rdma/rdma_netlink.h
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2017-06-18 15:51:16 +0300
committerLeon Romanovsky <leon@kernel.org>2017-08-10 13:19:03 +0300
commitff61c425c1c563f1d688d59caf3b18a395cbf9c4 (patch)
tree2062a53ee7ba17723c15af1fa507597acec26867 /include/rdma/rdma_netlink.h
parent4d7f693af0c9d0d6940ff36f5adca1adfa0e7e6e (diff)
downloadlinux-ff61c425c1c563f1d688d59caf3b18a395cbf9c4.tar.xz
RDMA/netlink: Simplify and rename ibnl_chk_listeners
Make ibnl_chk_listeners function to be one line by removing unneeded comparison. Rename that function to be complaint to other functions in RDMA netlink. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Diffstat (limited to 'include/rdma/rdma_netlink.h')
-rw-r--r--include/rdma/rdma_netlink.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rdma/rdma_netlink.h b/include/rdma/rdma_netlink.h
index 16a94c425938..348e0bbe0fc9 100644
--- a/include/rdma/rdma_netlink.h
+++ b/include/rdma/rdma_netlink.h
@@ -78,4 +78,10 @@ int rdma_nl_unicast_wait(struct sk_buff *skb, __u32 pid);
*/
int rdma_nl_multicast(struct sk_buff *skb, 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 rdma_nl_chk_listeners(unsigned int group);
#endif /* _RDMA_NETLINK_H */