rpma_srq_cfg_new3
Create a new shared rq configuration object
Usage
#include <librpma.h>
struct rpma_srq_cfg;
int rpma_srq_cfg_new(struct rpma_srq_cfg **cfg_ptr);
Overview
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.
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.
Errors
rpma_srq_cfg_new() can fail with the following error:
•
|
RPMA_E_INVAL - cfg_ptr is NULL |
|---|---|
•
|
RPMA_E_NOMEM - out of memory |
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.