NAME¶
rpma_peer_cfg_new - create a new peer configuration object
SYNOPSIS¶
#include <librpma.h>
struct rpma_peer_cfg;
int rpma_peer_cfg_new(struct rpma_peer_cfg **pcfg_ptr);
DESCRIPTION¶
rpma_peer_cfg_new() creates 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.
ERRORS¶
rpma_peer_cfg_new() can fail with the following errors:
- RPMA_E_INVAL - pcfg_ptr is NULL
- RPMA_E_NOMEM - out of memory