| 1 |
.\" -*- nroff -*- |
| 2 |
.\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md |
| 3 |
.\" |
| 4 |
.TH IBV_QUERY_SRQ 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual" |
| 5 |
.SH "NAME" |
| 6 |
ibv_query_srq \- get the attributes of a shared receive queue (SRQ) |
| 7 |
.SH "SYNOPSIS" |
| 8 |
.nf |
| 9 |
.B #include <infiniband/verbs.h> |
| 10 |
.sp |
| 11 |
.BI "int ibv_query_srq(struct ibv_srq " "*srq" ", struct ibv_srq_attr " "*srq_attr" ); |
| 12 |
.fi |
| 13 |
.SH "DESCRIPTION" |
| 14 |
.B ibv_query_srq() |
| 15 |
gets the attributes of the SRQ |
| 16 |
.I srq |
| 17 |
and returns them through the pointer |
| 18 |
.I srq_attr\fR. |
| 19 |
The argument |
| 20 |
.I srq_attr |
| 21 |
is an ibv_srq_attr struct, as defined in <infiniband/verbs.h>. |
| 22 |
.PP |
| 23 |
.nf |
| 24 |
struct ibv_srq_attr { |
| 25 |
.in +8 |
| 26 |
uint32_t max_wr; /* maximum number of outstanding work requests (WRs) in the SRQ */ |
| 27 |
uint32_t max_sge; /* maximum number of scatter elements per WR */ |
| 28 |
uint32_t srq_limit; /* the limit value of the SRQ */ |
| 29 |
.in -8 |
| 30 |
}; |
| 31 |
.fi |
| 32 |
.SH "RETURN VALUE" |
| 33 |
.B ibv_query_srq() |
| 34 |
returns 0 on success, or the value of errno on failure (which indicates the failure reason). |
| 35 |
.SH "NOTES" |
| 36 |
If the value returned for srq_limit is 0, then the SRQ limit reached |
| 37 |
("low watermark") event is not (or no longer) armed, and no |
| 38 |
asynchronous events will be generated until the event is rearmed. |
| 39 |
.SH "SEE ALSO" |
| 40 |
.BR ibv_create_srq (3), |
| 41 |
.BR ibv_destroy_srq (3), |
| 42 |
.BR ibv_modify_srq (3) |
| 43 |
.SH "AUTHORS" |
| 44 |
.TP |
| 45 |
Dotan Barak <[email protected]> |