logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rpma_peer_cfg_new - create a new peer configuration object

Description

rpma_peer_cfg_new() creates a new peer configuration object.

Errors

rpma_peer_cfg_new() can fail with the following errors:

       •  RPMA_E_INVAL - pcfg_ptr is NULL

       •  RPMA_E_NOMEM - out of memory

Name

rpma_peer_cfg_new - create a new peer configuration object

Return Value

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

See Also

rpma_conn_apply_remote_peer_cfg(3),      rpma_peer_cfg_delete(3),       rpma_peer_cfg_from_descriptor(3),
       rpma_peer_cfg_get_descriptor(3),                                    rpma_peer_cfg_get_descriptor_size(3),
       rpma_peer_cfg_get_direct_write_to_pmem(3),  rpma_peer_cfg_set_direct_write_to_pmem(3),   librpma(7)   and
       https://pmem.io/rpma/

RPMA                                              01 April 2024                             rpma_peer_cfg_new(3)

Synopsis

             #include <librpma.h>

             struct rpma_peer_cfg;
             int rpma_peer_cfg_new(struct rpma_peer_cfg **pcfg_ptr);

See Also