rpma_peer_new(3)

rpma_peer_new3

Create a peer object

Usage

      #include <librpma.h>
      struct ibv_context;
      struct rpma_peer;
      int rpma_peer_new(struct ibv_context *ibv_ctx, struct rpma_peer **peer_ptr);

Overview

rpma_peer_new() creates a new peer object.

Return value

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

Errors

rpma_peer_new() can fail with the following errors:

•

RPMA_E_INVAL - ibv_ctx or peer_ptr is NULL

•

RPMA_E_NOMEM - creating a verbs protection domain failed with ENOMEM.

•

RPMA_E_PROVIDER - creating a verbs protection domain failed with error other than ENOMEM.

•

RPMA_E_UNKNOWN - creating a verbs protection domain failed without error value.

•

RPMA_E_NOMEM - out of memory

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From librpma-dev 1.3.0-2+b3 in Debian 13 (Trixie). Parsed by carta from the page's man source.