rpma_mr_dereg(3)

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

πŸ’– rpma_mr_dereg(3) β€” RPMA Programmer's Manual πŸ’–

okay bestie, sit down, hydrate, and let me tell you about rpma_mr_dereg β€” it lives in the RPMA Programmer's Manual and it's literally the little cleanup icon you need in your life. ✨


🌸 NAME 🌸

rpma_mr_dereg β€” delete a local memory registration object

no cap, that's the whole job. it deletes. it deregisters. it says bye. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

#include <librpma.h>

struct rpma_mr_local;
int rpma_mr_dereg(struct rpma_mr_local **mr_ptr);

look at that signature. gorgeous. flawless. a little pointer-to-a-pointer moment, because we're changing the thing it points at. iykyk. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

rpma_mr_dereg() deregisters a memory region and deletes a local memory registration object. that's it, that's the vibe. it's the closing credits of your memory registration's main character arc. 🎬


⭐ RETURN VALUE ⭐

rpma_mr_dereg() returns 0 on success, or a negative error code on failure. slay when it's zero, sad girl hours when it's negative. 😭

heads up: rpma_mr_dereg() does not set the *mr_ptr value to NULL on failure. so do not β€” i repeat, do NOT β€” assume your pointer got tidied up for you. she stays exactly where she was. 🫢

πŸ’€ ERRORS πŸ’€

rpma_mr_dereg() can fail with the following errors:

  • RPMA_E_INVAL β€” mr_ptr is NULL. bestie. you gave it nothing. it cannot work with nothing. πŸ™ˆ
  • RPMA_E_PROVIDER β€” memory deregistration failed. the provider said no and honestly we have to respect it. πŸ’”

🌈 SEE ALSO 🌈


and that's the whole page, babes β€” sourced from the RPMA crew and dated 01 April 2024, manual page rpma_mr_dereg(3). go forth and deregister responsibly. mwah. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from