DOKK / manpages / debian 12 / librpma-dev / rpma_conn_disconnect.3.en
rpma_conn_disconnect(3) RPMA Programmer's Manual rpma_conn_disconnect(3)

rpma_conn_disconnect - tear the connection down


#include <librpma.h>
struct rpma_conn;
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 rpma_conn_next_event() or
  • It may be called after receiving the RPMA_CONN_CLOSED event. In this case, the disconnection is done when rpma_conn_disconnect() returns with success.

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

rpma_conn_delete(3), rpma_conn_next_event(3), rpma_conn_req_connect(3), librpma(7) and https://pmem.io/rpma/

10 January 2023 RPMA