rpma_conn_cfg_delete(3)

πŸ“¦
version 1.3.0 Β· 3 versions
, in ubuntu noble

πŸ’… 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_ptr is NULL

πŸ¦‹ 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