rpma_peer_cfg_new(3)
π rpma_peer_cfg_new β the manual page, but make it make sense π
okay bestie, so this is rpma_peer_cfg_new(3) from the RPMA Programmer's Manual and it's literally the glow-up moment for a peer configuration object. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
rpma_peer_cfg_new β create a new peer configuration object
like. it makes the thing. the peer config thing. brand new, fresh out the box π
πΈ SYNOPSIS πΈ
#include <librpma.h>
struct rpma_peer_cfg;
int rpma_peer_cfg_new(struct rpma_peer_cfg **pcfg_ptr);
π¦ DESCRIPTION π¦
rpma_peer_cfg_new() creates a new peer configuration object.
that's it. that's the whole vibe. one job, does it flawlessly, main character energy fr fr π
π RETURN VALUE π
rpma_peer_cfg_new() returns 0 on success, or a negative error code on failure. so like, zero = slay, negative = something went wrong and we're not okay π
also important, and don't skip this part: rpm_peer_cfg_new() does not set *pcfg_ptr value on failure. yes, it's spelled rpm_peer_cfg_new() right there in the original and I am NOT touching it, that's the text, character for character, no cap. anyway β if it fails, your pointer stays exactly how you left it. no sneaky half-initialized surprises. periodt.
π ERRORS π
rpma_peer_cfg_new() can fail with the following errors:
RPMA_E_INVALβpcfg_ptrisNULL. you passed it nothing bestie, it cannot work with nothing πRPMA_E_NOMEMβ out of memory. the machine is full, no thoughts, head empty, allocation denied π
π SEE ALSO π
go read these next, they're all part of the same friend group:
rpma_conn_apply_remote_peer_cfg(3)rpma_peer_cfg_delete(3)rpma_peer_cfg_from_descriptor(3)rpma_peer_cfg_get_descriptor(3)rpma_peer_cfg_get_descriptor_size(3)rpma_peer_cfg_get_direct_write_to_pmem(3)rpma_peer_cfg_set_direct_write_to_pmem(3)librpma(7)- and the website, https://pmem.io/rpma/
quick vibe check: this page lives under RPMA and it's dated 01 April 2024, and the page itself is rpma_peer_cfg_new(3) β so if you ever need to cite it, that's the whole receipt π§Ύβ¨
anyway that's the page. go create your peer config object, you're doing amazing, i'm obsessed with you, mwah ππ¦ππΈπ
π¦ 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