.\" Automatically generated by Pandoc 1.16.0.2
.\"
.TH "IBV_GET_SRQ_NUM" "3" "2013\-06\-26" "libibverbs" "Libibverbs Programmer\[aq]s Manual"
.hy
.SH NAME
.PP
ibv_get_srq_num \- return srq number associated with the given shared
receive queue (SRQ)
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <infiniband/verbs.h>

int\ ibv_get_srq_num(struct\ ibv_srq\ *srq,\ uint32_t\ *srq_num);
\f[]
.fi
.SH DESCRIPTION
.PP
\f[B]ibv_get_srq_num()\f[] return srq number associated with the given
shared receive queue The argument \f[I]srq\f[] is an ibv_srq struct, as
defined in <infiniband/verbs.h>.
\f[I]srq_num\f[] is an output parameter that holds the returned srq
number.
.SH RETURN VALUE
.PP
\f[B]ibv_get_srq_num()\f[] returns 0 on success, or the value of errno
on failure (which indicates the failure reason).
.SH SEE ALSO
.PP
\f[B]ibv_alloc_pd\f[](3), \f[B]ibv_create_srq_ex\f[](3),
\f[B]ibv_modify_srq\f[](3)
.SH AUTHOR
.PP
Yishai Hadas <yishaih@mellanox.com>
