.\" Extracted by src2man from /build/rpma-11eW7Q/rpma-1.3.0/src/include/librpma.h .\" Text automatically generated by txt2man .TH rpma_srq_get_rcq 3 "29 May 2023" "RPMA" "RPMA Programmer's Manual" .SH NAME \fBrpma_srq_get_rcq -- get the receive CQ from the shared RQ object .SH SYNOPSIS .nf .fam C #include struct rpma_srq; struct rpma_cq; int \fBrpma_srq_get_rcq\fP(const struct rpma_srq *srq, struct rpma_cq **rcq_ptr); .fam T .fi .fam T .fi .SH DESCRIPTION \fBrpma_srq_get_rcq\fP() gets the receive CQ from the shared RQ object. The receive CQ created by \fBrpma_srq_new\fP(3) allows handling all \fBrpma_srq_recv\fP(3) completions within the shared RQ. \fBrpma_srq_cfg_set_rcq_size\fP(3) can change the receive CQ size. .SH RETURN VALUE The \fBrpma_srq_get_rcq\fP() function returns 0 on success or a negative error code on failure. \fBrpma_srq_get_rcq\fP() does not set *rcq_ptr value on failure. .SH ERRORS \fBrpma_srq_get_rcq\fP() can fail with the following error: .IP \(bu 3 RPMA_E_INVAL - srq or rcq_ptr is NULL .SH SEE ALSO \fBrpma_cq_wait\fP(3), \fBrpma_cq_get_wc\fP(3), \fBrpma_cq_get_fd\fP(3), \fBrpma_srq_cfg_set_rcq_size\fP(3), \fBrpma_srq_new\fP(3), \fBlibrpma\fP(7) and https://pmem.io/rpma/