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

rpma_srq_cfg_new - create a new shared RQ configuration object


#include <librpma.h>
struct rpma_srq_cfg;
int rpma_srq_cfg_new(struct rpma_srq_cfg **cfg_ptr);

rpma_srq_cfg_new() creates a new shared RQ configuration object and fills it with the default values:


.rcq_size = 100
.rq_size = 100
Note that rpma_srq_new(3) with the default rcq_size creates its own receive CQ.

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

rpma_srq_cfg_new() can fail with the following error:

  • RPMA_E_INVAL - cfg_ptr is NULL
  • RPMA_E_NOMEM - out of memory

rpma_srq_cfg_delete(3), rpma_srq_cfg_get_rcq_size(3), rpma_srq_cfg_get_rq_size(3), rpma_srq_cfg_set_rcq_size(3), rpma_srq_cfg_set_rq_size(3), rpma_srq_new(3), librpma(7) and https://pmem.io/rpma/

10 January 2023 RPMA