.\" Extracted by src2man from /build/rpma-11eW7Q/rpma-1.3.0/src/include/librpma.h .\" Text automatically generated by txt2man .TH rpma_conn_cfg_new 3 "29 May 2023" "RPMA" "RPMA Programmer's Manual" .SH NAME \fBrpma_conn_cfg_new \fP- create a new connection configuration object .SH SYNOPSIS .nf .fam C #include struct rpma_conn_cfg; int \fBrpma_conn_cfg_new\fP(struct rpma_conn_cfg **cfg_ptr); .fam T .fi .fam T .fi .SH DESCRIPTION \fBrpma_conn_cfg_new\fP() creates a new connection configuration object and fills it with the default values: .PP .nf .fam C .timeout_ms = 1000 .cq_size = 10 .rcq_size = 0 .sq_size = 10 .rq_size = 10 .shared_comp_channel = false .fam T .fi .SH RETURN VALUE The \fBrpma_conn_cfg_new\fP() function returns 0 on success or a negative error code on failure. \fBrpma_conn_cfg_new\fP() does not set *cfg_ptr value on failure. .SH ERRORS \fBrpma_conn_cfg_new\fP() can fail with the following error: .IP \(bu 3 RPMA_E_INVAL - cfg_ptr is NULL .IP \(bu 3 RPMA_E_NOMEM - out of memory .SH SEE ALSO \fBrpma_conn_cfg_delete\fP(3), \fBrpma_conn_cfg_get_compl_channel\fP(3), \fBrpma_conn_cfg_get_cq_size\fP(3), \fBrpma_conn_cfg_get_rq_size\fP(3), \fBrpma_conn_cfg_get_sq_size\fP(3), \fBrpma_conn_cfg_get_timeout\fP(3), \fBrpma_conn_cfg_set_compl_channel\fP(3), \fBrpma_conn_cfg_set_cq_size\fP(3), \fBrpma_conn_cfg_set_rq_size\fP(3), \fBrpma_conn_cfg_set_sq_size\fP(3), \fBrpma_conn_cfg_set_timeout\fP(3), \fBrpma_conn_req_new\fP(3), \fBrpma_ep_next_conn_req\fP(3), \fBlibrpma\fP(7) and https://pmem.io/rpma/