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

NAME

6       ibv_create_cq,  ibv_destroy_cq  -  create or destroy a completion queue
7       (CQ)
8

SYNOPSIS

10       #include <infiniband/verbs.h>
11
12       struct ibv_cq *ibv_create_cq(struct ibv_context *context, int cqe,
13                                    void *cq_context,
14                                    struct ibv_comp_channel *channel,
15                                    int comp_vector);
16
17       int ibv_destroy_cq(struct ibv_cq *cq);
18

DESCRIPTION

20       ibv_create_cq() creates a completion  queue  (CQ)  with  at  least  cqe
21       entries  for  the  RDMA device context context.  The pointer cq_context
22       will be used to set user context pointer of the CQ structure. The argu‐
23       ment  channel  is optional; if not NULL, the completion channel channel
24       will be used to return completion events.  The CQ will use the  comple‐
25       tion  vector comp_vector for signaling completion events; it must be at
26       least zero and less than context->num_comp_vectors.
27
28       ibv_destroy_cq() destroys the CQ cq.
29

RETURN VALUE

31       ibv_create_cq() returns a pointer to the CQ, or  NULL  if  the  request
32       fails.
33
34       ibv_destroy_cq() returns 0 on success, or the value of errno on failure
35       (which indicates the failure reason).
36

NOTES

38       ibv_create_cq() may create a CQ with size greater than or equal to  the
39       requested  size.  Check  the  cqe  attribute in the returned CQ for the
40       actual size.
41
42       ibv_destroy_cq() fails if any queue pair is still associated with  this
43       CQ.
44

SEE ALSO

46       ibv_resize_cq(3),  ibv_req_notify_cq(3), ibv_ack_cq_events(3), ibv_cre‐
47       ate_qp(3)
48

AUTHORS

50       Dotan Barak <dotanba@gmail.com>
51
52
53
54libibverbs                        2006-10-31                  IBV_CREATE_CQ(3)
Impressum