rpma_mr_get_descriptor3
Get a descriptor of a memory region
Usage
#include <librpma.h>
struct rpma_mr_local;
int rpma_mr_get_descriptor(const struct rpma_mr_local *mr, void *desc);
Overview
rpma_mr_get_descriptor() writes a network-transferable description of the provided local memory region (called 'descriptor'). Once the descriptor is transferred to the other side it should be decoded by rpma_mr_remote_from_descriptor() to create a remote memory region's structure which allows for Remote Memory Access. Please see librpma(7) for details.
Security warning
Return value
The rpma_mr_get_descriptor() function returns 0 on success or a negative error code on failure.
Errors
rpma_mr_get_descriptor() can fail with the following error:
- •
-
RPMA_E_INVAL - mr or desc is NULL
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.