rpma_ep_shutdown(3)
π rpma_ep_shutdown β bestie's guide to hanging up the phone π
okay so this is rpma_ep_shutdown(3) from the RPMA Programmer's Manual β like, the librpma girlies know β¨
π NAME π
rpma_ep_shutdown β stop listening and delete the endpoint π«Ά
β¨ SYNOPSIS β¨
#include <librpma.h>
struct rpma_ep;
int rpma_ep_shutdown(struct rpma_ep **ep_ptr);
πΈ DESCRIPTION πΈ
so basically, rpma_ep_shutdown() does two things and it does them together, no cap:
- it stops listening for incoming connections πβ
- and it deletes the endpoint ποΈβ¨
and here's the part that lowkey surprises people: the connections that were already established using the endpoint? they still exist after the endpoint gets deleted. the endpoint is gone but the connections are out here living their best life π the way that endpoint said "not my problem anymore" and left π
π¦ RETURN VALUE π¦
- returns
0on success π - returns a negative error code on failure π
β οΈ important bestie: on failure,rpma_ep_shutdown()does not set the*ep_ptrvalue toNULL. so don't go assuming it's null, okay? it's giving "no cleanup for you" π
π ERRORS π
rpma_ep_shutdown() can fail with the following errors, periodt:
RPMA_E_INVALβep_ptrisNULLπRPMA_E_PROVIDERβrdma_destroy_id(3)failed π₯
π SEE ALSO π
okay that's the whole page, you ate it up π this was the RPMA manual, dated 01 April 2024 β go forth and shut down your endpoints responsibly, mwah ππ§
π¦ 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