rpma_srq_cfg_new(3)
π rpma_srq_cfg_new β create a new shared RQ configuration object π
okay bestie, welcome to the RPMA Programmer's Manual β¨ this one's about rpma_srq_cfg_new(3), and it's genuinely such a vibe. let's get into it π«Ά
πΈ NAME πΈ
rpma_srq_cfg_new β make a brand new shared RQ configuration object. yes, it's giving "fresh start" energy π
β¨ SYNOPSIS β¨
#include <librpma.h>
struct rpma_srq_cfg;
int rpma_srq_cfg_new(struct rpma_srq_cfg **cfg_ptr);
look at her. so clean. so iconic π
π¦ DESCRIPTION π¦
so rpma_srq_cfg_new() does exactly what it says on the tin: it creates a new shared RQ configuration object and fills it in with the default values, which are:
.rcq_size = 100
.rq_size = 100
defaults so cozy, so demure π
ngl, important lore incoming:rpma_srq_new(3)called with the defaultrcq_sizecreates its own receive CQ. periodt.
π RETURN VALUE π
rpma_srq_cfg_new() returns 0 on success, or a negative error code if it fails π and listen β if it fails, rpma_srq_cfg_new() does not set the *cfg_ptr value. like, it's not gonna hand you a half-baked pointer. no cap.
π ERRORS π
rpma_srq_cfg_new() can fail with these, so know them iykyk:
RPMA_E_INVALβcfg_ptrisNULLπRPMA_E_NOMEMβ out of memory π
π SEE ALSO π
go read these next, bestie, they're all linked up:
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/ β
and that's the whole page, fr fr π§ this was the RPMA manual, dated 01 April 2024, and yeah β rpma_srq_cfg_new(3) really ate that. slay πβ¨πΈ
π¦ where this page comes from
- ubuntu noble: librpma-dev 1.3.0-2build2 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms