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

rpma_peer_delete - delete a peer object


#include <librpma.h>
struct rpma_peer;
int rpma_peer_delete(struct rpma_peer **peer_ptr);

rpma_peer_delete() deletes the peer object.

RETURN VALUE

The rpma_peer_delete() function returns 0 on success or a negative error code on failure. rpm_peer_delete() does not set *peer_ptr value to NULL on failure.

RETURN VALUE

The rpma_peer_delete() function returns 0 on success or a negative error code on failure. rpma_peer_delete() does not set *peer_ptr to NULL on failure.

rpma_peer_delete() can fail with the following error:

RPMA_E_PROVIDER - deleting the verbs protection domain failed.

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

10 January 2023 RPMA