rpma_conn_cfg_new(3)
π rpma_conn_cfg_new(3) β the RPMA Programmer's Manual, but make it cute
okay so bestie, welcome to the RPMA Programmer's Manual β¨ this one's about rpma_conn_cfg_new, and honestly? it's giving fresh start energy π¦
πΈ NAME πΈ
rpma_conn_cfg_new β create a new connection configuration object π
β¨ SYNOPSIS β¨
#include <librpma.h>
struct rpma_conn_cfg;
int rpma_conn_cfg_new(struct rpma_conn_cfg **cfg_ptr);
like yes, that's the whole vibe. two lines and a dream π
π« DESCRIPTION π«
so rpma_conn_cfg_new() does exactly what it says on the tin: it creates a brand-new connection configuration object and fills it up with the default values. no cap, it comes pre-loaded π«Ά
here's what you get straight out the box:
.timeout_ms = 1000
.cq_size = 10
.rcq_size = 0
.sq_size = 10
.rq_size = 10
.shared_comp_channel = false
look at those defaults, they're literally so well-behaved π§ rcq_size = 0 is just out here being zero and unbothered, and we respect that π
π RETURN VALUE π
rpma_conn_cfg_new() returns 0 on success, or a negative error code if it fails π
and listen, this part matters: on failure,rpma_conn_cfg_new()does not set the*cfg_ptrvalue. it just... doesn't. so don't go reading it expecting a little gift in there, bestie π
π₯ ERRORS π₯
rpma_conn_cfg_new() can fail with the following errors:
RPMA_E_INVALβcfg_ptrisNULLπRPMA_E_NOMEMβ out of memory π
π¦ SEE ALSO π¦
go read these next, fr fr, they're the whole squad:
rpma_conn_cfg_delete(3)rpma_conn_cfg_get_compl_channel(3)rpma_conn_cfg_get_cq_size(3)rpma_conn_cfg_get_rq_size(3)rpma_conn_cfg_get_sq_size(3)rpma_conn_cfg_get_timeout(3)rpma_conn_cfg_set_compl_channel(3)rpma_conn_cfg_set_cq_size(3)rpma_conn_cfg_set_rq_size(3)rpma_conn_cfg_set_sq_size(3)rpma_conn_cfg_set_timeout(3)rpma_conn_req_new(3)rpma_ep_next_conn_req(3)librpma(7)- https://pmem.io/rpma/
RPMA β 01 April 2024 β rpma_conn_cfg_new(3)
and that's the whole page, bestie π«Ά go create that config object, you're gonna eat π β¨ periodt π
π¦ 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