rpma_conn_cfg_delete(3)
π rpma_conn_cfg_delete β bestie edition π
okay so this is rpma_conn_cfg_delete(3) from the RPMA Programmer's Manual, and it's literally the cleanup queen of the librpma connection-config world. let's get into it π«Ά
β¨ NAME β¨
rpma_conn_cfg_delete β delete the connection configuration object
π SYNOPSIS π
#include <librpma.h>
struct rpma_conn_cfg;
int rpma_conn_cfg_delete(struct rpma_conn_cfg **cfg_ptr);
πΈ DESCRIPTION πΈ
rpma_conn_cfg_delete() deletes the connection configuration object. that's it, that's the whole job. it takes your cfg_ptr and says bye bye bye ππ
π RETURN VALUE π
rpma_conn_cfg_delete() returns 0 on success or a negative error code on failure.
and here's the part that's lowkey iconic: rpma_conn_cfg_delete() sets the *cfg_ptr value to NULL on success and on failure. both. every time. it's giving "i'm cleaning up regardless, no notes" β¨
π ERRORS π
rpma_conn_cfg_delete() can fail with the following error:
RPMA_E_INVALβcfg_ptrisNULL
π¦ SEE ALSO π¦
and that's the whole page, bestie, no cap. this one's from the RPMA crew, dated 01 April 2024, and it lives in the RPMA Programmer's Manual (the 3 section, iykyk). now go free that config object, you absolute main character π§π
π¦ 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