.\" Extracted by src2man from /build/rpma-11eW7Q/rpma-1.3.0/src/include/librpma.h .\" Text automatically generated by txt2man .TH rpma_mr_dereg 3 "29 May 2023" "RPMA" "RPMA Programmer's Manual" .SH NAME \fBrpma_mr_dereg \fP- delete a local memory registration object .SH SYNOPSIS .nf .fam C #include struct rpma_mr_local; int \fBrpma_mr_dereg\fP(struct rpma_mr_local **mr_ptr); .fam T .fi .fam T .fi .SH DESCRIPTION \fBrpma_mr_dereg\fP() deregisters a memory region and deletes a local memory registration object. .SH RETURN VALUE The \fBrpma_mr_dereg\fP() function returns 0 on success or a negative error code on failure. \fBrpma_mr_dereg\fP() does not set *mr_ptr value to NULL on failure. .SH ERRORS \fBrpma_mr_dereg\fP() can fail with the following errors: .IP \(bu 3 RPMA_E_INVAL - mr_ptr is NULL .IP \(bu 3 RPMA_E_PROVIDER - memory deregistration failed .SH SEE ALSO \fBrpma_mr_reg\fP(3), \fBlibrpma\fP(7) and https://pmem.io/rpma/