rdma_disconnect
Disconnects a connection.
Syntax
#include <rdma/rdma_cma.h>
int rdma_disconnect(struct rdma_cm_id *id);
Description
The rdma_disconnect function disconnects a connection and transitions any associated queue pair (QP) with the error state. The error state moves the work requests that are posted to the completion queue. This routing can be run by the client and server side of a connection. An RDMA_CM_EVENT_DISCONNECTED event is generated on both sides of the connection after successful disconnection.
Parameters
Item | Description |
---|---|
id | Specifies the connection identifier that is associated with the request. |
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.