logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rpma_mr_get_descriptor - get a descriptor of a memory region

Description

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.

Errors

rpma_mr_get_descriptor() can fail with the following error:

       •  RPMA_E_INVAL - mr or desc is NULL

Name

rpma_mr_get_descriptor - get a descriptor of a memory region

Return Value

       The rpma_mr_get_descriptor() function returns 0 on success or a negative error code on failure.

Security Warning

       See rpma_mr_remote_from_descriptor(3).

See Also

rpma_mr_get_descriptor_size(3), rpma_mr_reg(3), librpma(7) and https://pmem.io/rpma/

RPMA                                              01 April 2024                        rpma_mr_get_descriptor(3)

Synopsis

             #include <librpma.h>

             struct rpma_mr_local;
             int rpma_mr_get_descriptor(const struct rpma_mr_local *mr, void *desc);

See Also