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

rpma_conn_cfg_get_srq - get the shared RQ object from the connection


#include <librpma.h>
struct rpma_conn_cfg;
struct rpma_srq;
int rpma_conn_cfg_get_srq(const struct rpma_conn_cfg *cfg, struct rpma_srq **srq_ptr);

rpma_conn_cfg_get_srq() gets the shared RQ object from the connection.

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

rpma_conn_cfg_get_srq() can fail with the following error:

RPMA_E_INVAL - cfg or srq_ptr is NULL

rpma_conn_cfg_new(3), rpma_conn_cfg_set_srq(3), librpma(7) and https://pmem.io/rpma/

10 January 2023 RPMA