Creates or destroys a completion event channel.
#include <rdma/verbs.h> struct ibv_comp_channel *ibv_create_comp_channel(struct ibv_context *context) int ibv_destroy_comp_channel(struct ibv_comp_channel *channel)
ibv_create_comp_channel() creates a completion event channel for the RDMA device context, context. A completion channel is a mechanism for the user to receive notifications when new Completion Queue Event (CQE) has been placed on a completion queue (CQ).
ibv_destroy_comp_channel() destroys the completion event channel, channel.
context | struct ibv_context from ibv_open_device. |
ibv_create_comp_channel() returns a pointer to the created completion event channel, or NULL if the request fails.
ibv_destroy_comp_channel() returns 0 on success, or the value of errno on failure (which indicates the failure reason).