rpma_conn_disconnect - tear the connection down
int rpma_conn_disconnect(struct rpma_conn *conn);
rpma_conn_disconnect() tears the connection down.
- It may initiate disconnecting the connection. In this case, the end of
disconnecting is signalled by the RPMA_CONN_CLOSED event via
- It may be called after receiving the RPMA_CONN_CLOSED event. In this case,
the disconnection is done when rpma_conn_disconnect() returns with
The rpma_conn_disconnect() function returns 0 on success or a negative
error code on failure.
rpma_conn_disconnect() can fail with the following errors:
- RPMA_E_INVAL - conn is NULL
- RPMA_E_PROVIDER - rdma_disconnect() failed