rpma_mr_get_descriptor(3)

πŸ“¦
version 1.3.0 Β· 3 versions
, in ubuntu noble

πŸ’– 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 β€” mr or desc is NULL πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹


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