X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;ds=sidebyside;f=include%2Frdma%2Frdma_netlink.h;h=5852661443290d52eb8a3e719716452d752b6eaa;hb=da2f6aba4a21f8da3331e5251a117c52764da579;hp=0790882e0c9b32443a37c44a26b3357224245d82;hpb=3dc50c1af30bf79c4fca3065acfb34adf05e90c2;p=cascardo%2Flinux.git 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 */