rpma_peer_delete(3)

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

πŸ’– rpma_peer_delete β€” the RPMA programmer's manual, bestie edition πŸ’–

okay so like, welcome to rpma_peer_delete(3), part of the RPMA Programmer's Manual. yes the same RPMA, remote persistent memory access, the whole thing ✨ pull up a chair πŸŽ€


✨ NAME ✨

rpma_peer_delete β€” bestie, we are deleting a peer object πŸ’…


🌸 SYNOPSIS 🌸

#include <librpma.h>

struct rpma_peer;
int rpma_peer_delete(struct rpma_peer **peer_ptr);

πŸ¦‹ DESCRIPTION πŸ¦‹

rpma_peer_delete() deletes the peer object. that's it. that's the whole job. it takes your peer and it's like, bye πŸ‘‹βœ¨


πŸ’œ RETURN VALUE πŸ’œ

The rpma_peer_delete() function returns 0 on success or a negative error code on failure. and listen β€” rpm_peer_delete() does not set *peer_ptr value to NULL on failure. 😭


πŸ’œ RETURN VALUE πŸ’œ

(no fr, it's printed twice in the original, we're keeping both, periodt πŸ‘‘)

The rpma_peer_delete() function returns 0 on success or a negative error code on failure. rpma_peer_delete() does not set *peer_ptr to NULL on failure. so if it flops, that pointer is still sitting there holding whatever it was holding, do not assume it got nulled out, iykyk 🫢


😭 ERRORS 😭

rpma_peer_delete() can fail with the following error:

  • RPMA_E_PROVIDER β€” deleting the verbs protection domain failed. the verbs protection domain said no πŸ’€

🌈 SEE ALSO 🌈

rpma_peer_new(3), librpma(7) and https://pmem.io/rpma/ β€” go read those too, they're iconic, no cap 🧚


this has been RPMA, dated 01 April 2024 β€” thanks for coming to my ted talk, love u, go delete responsibly πŸ’–πŸ¦‹πŸŒΈπŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from