rpma_mr_dereg(3)
π 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_ptrvalue toNULLon 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_ptrisNULL. 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
- 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