1IBV_QUERY_SRQ(3)        Libibverbs Programmer's Manual        IBV_QUERY_SRQ(3)
2
3
4

NAME

6       ibv_query_srq - get the attributes of a shared receive queue (SRQ)
7

SYNOPSIS

9       #include <infiniband/verbs.h>
10
11       int ibv_query_srq(struct ibv_srq *srq, struct ibv_srq_attr *srq_attr);
12

DESCRIPTION

14       ibv_query_srq()  gets  the  attributes  of the SRQ srq and returns them
15       through the pointer srq_attr.  The argument srq_attr is an ibv_srq_attr
16       struct, as defined in <infiniband/verbs.h>.
17
18       struct ibv_srq_attr {
19               uint32_t                max_wr;         /* maximum number of outstanding work requests (WRs) in the SRQ */
20               uint32_t                max_sge;        /* maximum number of scatter elements per WR */
21               uint32_t                srq_limit;      /* the limit value of the SRQ */
22       };
23

RETURN VALUE

25       ibv_query_srq()  returns 0 on success, or the value of errno on failure
26       (which indicates the failure reason).
27

NOTES

29       If the value returned for srq_limit is 0, then the  SRQ  limit  reached
30       ("low  watermark")  event is not (or no longer) armed, and no asynchro‐
31       nous events will be generated until the event is rearmed.
32

SEE ALSO

34       ibv_create_srq(3), ibv_destroy_srq(3), ibv_modify_srq(3)
35

AUTHORS

37       Dotan Barak <dotanba@gmail.com>
38
39
40
41libibverbs                        2006-10-31                  IBV_QUERY_SRQ(3)
Impressum