ibv_create_cq(3) - Linux man page
Name
ibv_create_cq, ibv_destroy_cq - create or destroy a completion queue (CQ)Synopsis
#include <infiniband/verbs.h>
struct ibv_cq *ibv_create_cq(struct ibv_context *context, int cqe,
void *cq_context, struct
ibv_comp_channel *channel, int comp_vector);
int ibv_destroy_cq(struct ibv_cq *cq);
Description
ibv_destroy_cq() destroys the CQ cq.
Return Value
ibv_create_cq() returns a pointer to the CQ, or NULL if the request fails.ibv_destroy_cq() returns 0 on success, or the value of errno on failure (which indicates the failure reason).
Notes
ibv_create_cq() may create a CQ with size greater than or equal to the requested size. Check the cqe attribute in the returned CQ for the actual size.ibv_destroy_cq() fails if any queue pair is still associated with this CQ.
See Also
ibv_resize_cq(3), ibv_req_notify_cq(3), ibv_ack_cq_events(3), ibv_create_qp(3)Authors
- Dotan Barak <dotanba@gmail.com>