rpma_conn_delete(3)

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

πŸ’– rpma_conn_delete(3) β€” the RPMA Programmer's Manual, bestie edition πŸ’–

okay so you're deep in the librpma lore (that's the RPMA library manual, section 3, iykyk) and you need to yeet a connection that's already been closed. not me writing a whole page about the cleanest little goodbye ever πŸ’…


✨ NAME ✨

rpma_conn_delete β€” delete already closed connection

like. the connection is already closed. you're just here to do the final cleanup. the closing ceremony. the confetti cleanup crew. πŸŽ€


🌸 SYNOPSIS 🌸

#include <librpma.h>

struct rpma_conn;
int rpma_conn_delete(struct rpma_conn **conn_ptr);

πŸ¦‹ DESCRIPTION πŸ¦‹

rpma_conn_delete() deletes an already closed connection.

that's it. that's the whole vibe. it's giving "you already said your goodbyes, now take out the trash" πŸ—‘οΈβœ¨

real talk though: the connection has to be already closed first. this is the after-party cleanup, not the breakup itself. bestie please read that twice 🫢

πŸ‘‘ RETURN VALUE πŸ‘‘

rpma_conn_delete() returns 0 on success, or a negative error code on failure.

and here's the iconic part β€” on success AND on failure, rpma_conn_delete() sets the *conn_ptr value to NULL. so either way, that pointer is getting set to NULL. no cap. it's the one consistent queen in your life πŸ’…


πŸ”₯ ERRORS πŸ”₯

rpma_conn_delete() can fail with these errors, so pay attention:

  • RPMA_E_INVAL β€” conn_ptr is NULL, or munmap() failed 😭
  • RPMA_E_PROVIDER β€” ibv_destroy_cq() or rdma_destroy_id() failed πŸ’€

🌈 SEE ALSO 🌈


and that's the whole page, bestie β€” go forth and delete responsibly πŸ§šπŸ’œ

this was RPMA Programmer's Manual energy, dated 01 April 2024 β€” mwah, slay, periodt βœ¨πŸ“

πŸ“¦ where this page comes from