rpma_srq_get_rcq3
Usage
#include <librpma.h>
struct rpma_srq;
struct rpma_cq;
int rpma_srq_get_rcq(const struct rpma_srq *srq, struct rpma_cq **rcq_ptr);
Overview
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.
Return value
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.
Errors
rpma_srq_get_rcq() can fail with the following error:
- •
-
RPMA_E_INVAL - srq or rcq_ptr is NULL
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.