| 1 | --- |
| 2 | date: 2013-06-26 |
| 3 | footer: libibverbs |
| 4 | header: "Libibverbs Programmer's Manual" |
| 5 | layout: page |
| 6 | license: 'Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md' |
| 7 | section: 3 |
| 8 | title: IBV_GET_SRQ_NUM |
| 9 | --- |
| 10 | |
| 11 | # NAME |
| 12 | |
| 13 | ibv_get_srq_num - return srq number associated with the given shared receive |
| 14 | queue (SRQ) |
| 15 | |
| 16 | # SYNOPSIS |
| 17 | |
| 18 | ```c |
| 19 | #include <infiniband/verbs.h> |
| 20 | |
| 21 | int ibv_get_srq_num(struct ibv_srq *srq, uint32_t *srq_num); |
| 22 | ``` |
| 23 | |
| 24 | # DESCRIPTION |
| 25 | |
| 26 | **ibv_get_srq_num()** return srq number associated with the given XRC shared |
| 27 | receive queue The argument *srq* is an ibv_srq struct, as defined in |
| 28 | <infiniband/verbs.h>. *srq_num* is an output parameter that holds the returned |
| 29 | srq number. |
| 30 | |
| 31 | |
| 32 | # RETURN VALUE |
| 33 | |
| 34 | **ibv_get_srq_num()** returns 0 on success, or the value of errno on failure |
| 35 | (which indicates the failure reason). |
| 36 | |
| 37 | # SEE ALSO |
| 38 | |
| 39 | **ibv_alloc_pd**(3), |
| 40 | **ibv_create_srq_ex**(3), |
| 41 | **ibv_modify_srq**(3) |
| 42 | |
| 43 | # AUTHOR |
| 44 | |
| 45 | Yishai Hadas <[email protected]> |