rpma_mr_get_descriptor(3)
π rpma_mr_get_descriptor(3) π
okay bestie, welcome to the RPMA Programmer's Manual β¨ we're doing rpma_mr_get_descriptor today and honestly? she's a baddie.
πΈ NAME πΈ
rpma_mr_get_descriptor β get a descriptor of a memory region π§
β¨ SYNOPSIS β¨
#include <librpma.h>
struct rpma_mr_local;
int rpma_mr_get_descriptor(const struct rpma_mr_local *mr, void *desc);
π DESCRIPTION π
so the way this works: rpma_mr_get_descriptor() writes a network-transferable description of the local memory region you hand it β and that description is literally called the descriptor. π
once you've shipped that descriptor over to the other side, it should get decoded by rpma_mr_remote_from_descriptor() to create a remote memory region's structure, which is what unlocks Remote Memory Access. it's giving teamwork fr fr. π«Ά
if you want the full lore, go read librpma(7) β she has details. π
π¨ SECURITY WARNING π¨
no cap, this part matters β see rpma_mr_remote_from_descriptor(3). π
π RETURN VALUE π
rpma_mr_get_descriptor() returns 0 on success, or a negative error code if it's not feeling it. π
π ERRORS π
rpma_mr_get_descriptor() can fail with the following error:
RPMA_E_INVALβmrordescisNULLπ
π¦ SEE ALSO π¦
rpma_mr_get_descriptor_size(3)rpma_mr_reg(3)librpma(7)- <https://pmem.io/rpma/> β wait, no links, but that URL is in the original so here it is as plain text:
https://pmem.io/rpma/β¨
periodt. that's the whole page, bestie. go get that descriptor. π
RPMA Β· 01 April 2024 Β· rpma_mr_get_descriptor(3) β mwah, catch you in the next manpage, iykyk π π
π¦ 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