.\" Extracted by src2man from /build/rpma-UAXlGU/rpma-1.2.0/src/include/librpma.h
.\" Text automatically generated by txt2man
.TH rpma_srq_cfg_new 3 "10 January 2023" "RPMA" "RPMA Programmer's Manual"
.SH NAME
\fBrpma_srq_cfg_new \fP- create a new shared RQ configuration object
.SH SYNOPSIS
.nf
.fam C
      #include <librpma.h>

      struct rpma_srq_cfg;
      int \fBrpma_srq_cfg_new\fP(struct rpma_srq_cfg **cfg_ptr);

.fam T
.fi
.fam T
.fi
.SH DESCRIPTION
\fBrpma_srq_cfg_new\fP() creates a new shared RQ configuration object and fills it with the default
values:
.PP
.nf
.fam C
        .rcq_size = 100
        .rq_size = 100

.fam T
.fi
Note that \fBrpma_srq_new\fP(3) with the default rcq_size creates its own receive CQ.
.SH RETURN VALUE
The \fBrpma_srq_cfg_new\fP() function returns 0 on success or a negative error code on failure.
\fBrpma_srq_cfg_new\fP() does not set *cfg_ptr value on failure.
.SH ERRORS
\fBrpma_srq_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_srq_cfg_delete\fP(3), \fBrpma_srq_cfg_get_rcq_size\fP(3), \fBrpma_srq_cfg_get_rq_size\fP(3),
\fBrpma_srq_cfg_set_rcq_size\fP(3), \fBrpma_srq_cfg_set_rq_size\fP(3), \fBrpma_srq_new\fP(3), \fBlibrpma\fP(7) and
https://pmem.io/rpma/