.\" Extracted by src2man from /build/rpma-UAXlGU/rpma-1.2.0/src/include/librpma.h .\" Text automatically generated by txt2man .TH rpma_peer_cfg_new 3 "10 January 2023" "RPMA" "RPMA Programmer's Manual" .SH NAME \fBrpma_peer_cfg_new \fP- create a new peer configuration object .SH SYNOPSIS .nf .fam C #include struct rpma_peer_cfg; int \fBrpma_peer_cfg_new\fP(struct rpma_peer_cfg **pcfg_ptr); .fam T .fi .fam T .fi .SH DESCRIPTION \fBrpma_peer_cfg_new\fP() creates a new peer configuration object. .SH RETURN VALUE The \fBrpma_peer_cfg_new\fP() function returns 0 on success or a negative error code on failure. \fBrpm_peer_cfg_new\fP() does not set *pcfg_ptr value on failure. .SH ERRORS \fBrpma_peer_cfg_new\fP() can fail with the following errors: .IP \(bu 3 RPMA_E_INVAL - pcfg_ptr is NULL .IP \(bu 3 RPMA_E_NOMEM - out of memory .SH SEE ALSO \fBrpma_conn_apply_remote_peer_cfg\fP(3), \fBrpma_peer_cfg_delete\fP(3), \fBrpma_peer_cfg_from_descriptor\fP(3), \fBrpma_peer_cfg_get_descriptor\fP(3), \fBrpma_peer_cfg_get_descriptor_size\fP(3), \fBrpma_peer_cfg_get_direct_write_to_pmem\fP(3), \fBrpma_peer_cfg_set_direct_write_to_pmem\fP(3), \fBlibrpma\fP(7) and https://pmem.io/rpma/