rdma_destroy_event_channel

Closes an event communication channel.

Syntax

#include <rdma/rdma_cma.h>
void rdma_destroy_event_channel(struct rdma_event_channel *channel);

Description

The rdma_destroy_event_channel function releases all resources that are associated with an event channel and closes the associated file descriptor.

Note: The rdma_cm_id identifiers that are associated with the event channel must be destroyed, and all returned events must be acknowledged before calling the rdma_destroy_event_channel function.

Parameters

Item Description
channel Specifies the communication channel to be destroyed.

Return Value

The rdma_destroy_event_channel function returns 0 on success, or -1 on error. If an error occurs, errno indicates the reason for failure.