diff options
author | Kaike Wan <kaike.wan@intel.com> | 2015-08-14 08:52:07 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-30 18:12:25 -0400 |
commit | bc10ed7d3d19ff61427007b4d7bf98d3e57bb333 (patch) | |
tree | 09a72a78b792581042bdd4cd31855a0370a01f8f /include/rdma/rdma_netlink.h | |
parent | 6431eb87065ffd24dfc7c0b6954e80a4eb74e177 (diff) | |
download | talos-op-linux-bc10ed7d3d19ff61427007b4d7bf98d3e57bb333.tar.gz talos-op-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/rdma/rdma_netlink.h')
-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 */ |