DOKK / manpages / debian 12 / librpma-dev / rpma_srq_get_rcq.3.en
rpma_srq_get_rcq(3) RPMA Programmer's Manual rpma_srq_get_rcq(3)

rpma_srq_get_rcq -- get the receive CQ from the shared RQ object


#include <librpma.h>
struct rpma_srq;
struct rpma_cq;
int rpma_srq_get_rcq(const struct rpma_srq *srq, struct rpma_cq **rcq_ptr);

rpma_srq_get_rcq() gets the receive CQ from the shared RQ object. The receive CQ created by rpma_srq_new(3) allows handling all rpma_srq_recv(3) completions within the shared RQ. rpma_srq_cfg_set_rcq_size(3) can change the receive CQ size.

The rpma_srq_get_rcq() function returns 0 on success or a negative error code on failure. rpma_srq_get_rcq() does not set *rcq_ptr value on failure.

rpma_srq_get_rcq() can fail with the following error:

RPMA_E_INVAL - srq or rcq_ptr is NULL

rpma_cq_wait(3), rpma_cq_get_wc(3), rpma_cq_get_fd(3), rpma_srq_cfg_set_rcq_size(3), rpma_srq_new(3), librpma(7) and https://pmem.io/rpma/

10 January 2023 RPMA