| 1 |
.\" -*- nroff -*- |
| 2 |
.\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md |
| 3 |
.\" |
| 4 |
.TH IBV_MODIFY_CQ 3 2017-10-20 libibverbs "Libibverbs Programmer's Manual" |
| 5 |
.SH "NAME" |
| 6 |
ibv_modify_cq \- modify a completion queue (CQ) |
| 7 |
.SH "SYNOPSIS" |
| 8 |
.nf |
| 9 |
.B #include <infiniband/verbs.h> |
| 10 |
.sp |
| 11 |
.BI "int ibv_modify_cq(struct ibv_cq " *cq ", struct ibv_modify_cq_attr "*cq_attr "); |
| 12 |
.sp |
| 13 |
.fi |
| 14 |
.SH "DESCRIPTION" |
| 15 |
.B ibv_modify_cq() |
| 16 |
modify a CQ |
| 17 |
.I cq\fR. |
| 18 |
The argument |
| 19 |
.I cq_attr |
| 20 |
is an ibv_modify_cq_attr struct, as defined in <infiniband/verbs.h>. |
| 21 |
.PP |
| 22 |
.nf |
| 23 |
struct ibv_moderate_cq { |
| 24 |
.in +8 |
| 25 |
uint16_t cq_count; /* number of completions per event */ |
| 26 |
uint16_t cq_period; /* in micro seconds */ |
| 27 |
.in -8 |
| 28 |
}; |
| 29 |
|
| 30 |
struct ibv_modify_cq_attr { |
| 31 |
.in +8 |
| 32 |
uint32_t attr_mask; |
| 33 |
struct ibv_moderate_cq moderate; |
| 34 |
.in -8 |
| 35 |
}; |
| 36 |
.fi |
| 37 |
.PP |
| 38 |
The function |
| 39 |
.B ibv_modify_cq() |
| 40 |
will modify the CQ, based on the given |
| 41 |
.I cq_attr\fB\fR->attr_mask |
| 42 |
.SH "RETURN VALUE" |
| 43 |
returns 0 on success, or the value of errno on failure (which indicates the failure reason). |
| 44 |
.SH "SEE ALSO" |
| 45 |
.BR ibv_create_cq (3) |
| 46 |
.SH "AUTHORS" |
| 47 |
.TP |
| 48 |
Yonatan Cohen <[email protected]> |