Releases a communication identifier.
#include <rdma/rdma_cma.h> int rdma_destroy_id(struct rdma_cm_id *id);
The rdma_destroy_id function destroys the specified rdma_cm_id and cancels any outstanding asynchronous operation.
id | Specifies the communication identifier to destroy. |
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. |