rdma_destroy_id

Releases a communication identifier.

Syntax

#include <rdma/rdma_cma.h>
int rdma_destroy_id(struct rdma_cm_id *id);

Description

The rdma_destroy_id function destroys the specified rdma_cm_id identifier and cancels any outstanding asynchronous operation.

Note: You must release any queue pair (QP) that is associated with the rdma_cm_id identifier before you call the rdma_destroy_id function and acknowledge all the related events.

Parameters

Item Description
id Specifies the communication identifier to destroy.

Return Values

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