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

rpma_conn_delete - delete already closed connection


#include <librpma.h>
struct rpma_conn;
int rpma_conn_delete(struct rpma_conn **conn_ptr);

rpma_conn_delete() deletes already closed connection.

The rpma_conn_delete() function returns 0 on success or a negative error code on failure. rpma_conn_delete() sets *conn_ptr value to NULL on success and on failure.

rpma_conn_delete() can fail with the following errors:

  • RPMA_E_INVAL - conn_ptr is NULL or munmap() failed
  • RPMA_E_PROVIDER - ibv_destroy_cq() or rdma_destroy_id() failed

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

10 January 2023 RPMA