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 and cancels any outstanding asynchronous operation.

Note: You must free any associated QP with the rdma_cm_id before calling the rdma_destroy_id routine and acknowledge an related events.

Parameters

id Specifies the communication identifier to destroy.

Return Values

The rdma_destroy_id function returns the following values:
0 On success.
-1 Error, see errno.
-EINVAL If the channel or id parameter is NULL.
-ENODATA The write operation on id->channel->fd failed.
[ Feedback ]