X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Frdma%2Frdma_netlink.h;h=5852661443290d52eb8a3e719716452d752b6eaa;hb=c2ea72fd869145130969d6b07273c479cf2a22f5;hp=0790882e0c9b32443a37c44a26b3357224245d82;hpb=7453f33b2e07fc2835e24cda0893de83c78d8d76;p=firefly-linux-kernel-4.4.55.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 */