rpma_conn_cfg_new(3)

rpma_conn_cfg_new3

Create a new connection configuration object

Usage

      #include <librpma.h>
      struct rpma_conn_cfg;
      int rpma_conn_cfg_new(struct rpma_conn_cfg **cfg_ptr);

Overview

rpma_conn_cfg_new() creates a new connection configuration object and fills it with the default values:

        .timeout_ms = 1000
        .cq_size = 10
        .rcq_size = 0
        .sq_size = 10
        .rq_size = 10
        .shared_comp_channel = false

Return value

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

Errors

rpma_conn_cfg_new() can fail with the following error:

•

RPMA_E_INVAL - cfg_ptr is NULL

•

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.