rpma_conn_delete(3)
π 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_ptrisNULL, ormunmap()failed πRPMA_E_PROVIDERβibv_destroy_cq()orrdma_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
- 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