rpma_ep_shutdown(3)

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

πŸ’– 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 0 on success πŸŽ‰
  • returns a negative error code on failure πŸ˜”
⚠️ important bestie: on failure, rpma_ep_shutdown() does not set the *ep_ptr value to NULL. 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_ptr is NULL πŸ™ƒ
  • 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