logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rpma_srq_cfg_new - create a new shared RQ configuration object

Description

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.

Errors

rpma_srq_cfg_new() can fail with the following error:

       •  RPMA_E_INVAL - cfg_ptr is NULL

       •  RPMA_E_NOMEM - out of memory

Name

rpma_srq_cfg_new - create a new shared RQ configuration object

Return Value

       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.

See Also

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/

RPMA                                              01 April 2024                              rpma_srq_cfg_new(3)

Synopsis

             #include <librpma.h>

             struct rpma_srq_cfg;
             int rpma_srq_cfg_new(struct rpma_srq_cfg **cfg_ptr);

See Also