rpma_mr_get_ptr(3)
β¨ rpma_mr_get_ptr β¨
okay bestie, welcome to librpma land π this is a page from the RPMA Programmer's Manual, and today's main character is rpma_mr_get_ptr β the lil function that gets you the pointer to your local memory region. yes, that pointer. the one you've been looking for. π«Ά
πΈ NAME πΈ
rpma_mr_get_ptr β get the pointer to the local memory region π
π SYNOPSIS π
#include <librpma.h>
struct rpma_mr_local;
int rpma_mr_get_ptr(const struct rpma_mr_local *mr, void **ptr);
π¦ DESCRIPTION π¦
so like, rpma_mr_get_ptr() does one thing and it does it well: it gets a memory region pointer from the local memory registration object. that's it. that's the whole vibe. π§
β RETURN VALUE β
rpma_mr_get_ptr() returns 0 on success β slay β or a negative error code on failure. π
and no cap: on failure,rpma_mr_get_ptr()does not set the*ptrvalue. it just leaves it alone. don't be out here trusting*ptrafter an L, bestie. π
π₯ ERRORS π₯
rpma_mr_get_ptr() can fail with the following error:
RPMA_E_INVALβmrorptrisNULL. like, you gave it nothing. it cannot work with nothing. π
π SEE ALSO π
and that's the tea β this was the RPMA manual, dated 01 April 2024 β go forth and get those pointers, you iconic icon. periodt. ππβ¨
π¦ 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