1IBV_MODIFY_CQ(3) Libibverbs Programmer's Manual IBV_MODIFY_CQ(3)
2
3
4
6 ibv_modify_cq - modify a completion queue (CQ)
7
9 #include <infiniband/verbs.h>
10
11 int ibv_modify_cq(struct ibv_cq *cq, struct ibv_modify_cq_attr *cq_attr);
12
13
15 ibv_modify_cq() modify a CQ cq. The argument cq_attr is an ibv_mod‐
16 ify_cq_attr struct, as defined in <infiniband/verbs.h>.
17
18 struct ibv_moderate_cq {
19 uint16_t cq_count; /* number of completions per event */
20 uint16_t cq_period; /* in micro seconds */
21 };
22
23 struct ibv_modify_cq_attr {
24 uint32_t attr_mask;
25 struct ibv_moderate_cq moderate;
26 };
27
28 The function ibv_modify_cq() will modify the CQ, based on the given
29 cq_attr->attr_mask
30
32 returns 0 on success, or the value of errno on failure (which indicates
33 the failure reason).
34
36 ibv_create_cq(3)
37
39 Yonatan Cohen <yonatanc@mellanox.com>
40
41
42
43libibverbs 2017-10-20 IBV_MODIFY_CQ(3)