rpma_peer_cfg_delete(3)
π rpma_peer_cfg_delete(3) β RPMA Programmer's Manual π
okay bestie, so this is a page from the RPMA Programmer's Manual and it's about one (1) little function that cleans up after you. short page, big responsibility. let's get into it π«Ά
β¨ NAME β¨
rpma_peer_cfg_delete β bestie, it deletes the peer configuration object. that's it. that's the whole job. it's giving cleanup crew energy π§Ήβ¨
πΈ SYNOPSIS πΈ
#include <librpma.h>
struct rpma_peer_cfg;
int rpma_peer_cfg_delete(struct rpma_peer_cfg **pcfg_ptr);
yes ma'am, that's the whole include plus the struct plus the one function signature. copy it exactly, don't freestyle it π
π¦ DESCRIPTION π¦
so like, rpma_peer_cfg_delete() deletes the peer configuration object. that's literally the description. no cap, no secret extra steps, no hidden lore. you made a peer config object at some point (hi rpma_peer_cfg_new(3), we see you π) and now you're done with it, so you hand it over here and it gets deleted. closure, but for memory. iconic.
π RETURN VALUE π
- returns
0on success π - returns a negative error code on failure π
and hear me out on this one because it's lowkey important:
rpm_peer_cfg_delete()does not set*pcfg_ptrvalue toNULLon failure.
so like, if it fails, that pointer is not getting nulled for you. it is what it is. do not assume otherwise, bestie, or you will have a bad time fr fr π
π ERRORS π
rpma_peer_cfg_delete() can fail with the following error:
RPMA_E_INVALβpcfg_ptrisNULL. like, there's nothing there. you handed it a void and it said "no thank you" π
π SEE ALSO π
okay that's the whole page, you're caught up, go forth and delete responsibly π«Ά
this lil cutie came from the RPMA manual, dated 01 April 2024, and yes it's rpma_peer_cfg_delete(3) β same name up top and down here, we love a symmetrical moment πβ¨
π¦ 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