diff options
author | Kaike Wan <kaike.wan@intel.com> | 2015-08-14 14:52:07 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-31 00:12:25 +0200 |
commit | bc10ed7d3d19ff61427007b4d7bf98d3e57bb333 (patch) | |
tree | 09a72a78b792581042bdd4cd31855a0370a01f8f /include | |
parent | IB/netlink: Add defines for local service requests through netlink (diff) | |
download | linux-bc10ed7d3d19ff61427007b4d7bf98d3e57bb333.tar.xz linux-bc10ed7d3d19ff61427007b4d7bf98d3e57bb333.zip |
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')
-rw-r--r-- | include/rdma/rdma_netlink.h | 7 |
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 */ |