rpma_mr_remote_get_size(3)
π rpma_mr_remote_get_size β get a remote memory region size π
okay bestie, so this one is a page from the RPMA Programmer's Manual, section 3, and it's all about rpma_mr_remote_get_size(3). yes the whole page is literally named after one function. it's giving main character energy and honestly? deserved. π
β¨ NAME β¨
rpma_mr_remote_get_size β get a remote memory region size π¦
β¨ SYNOPSIS β¨
#include <librpma.h>
struct rpma_mr_remote;
int rpma_mr_remote_get_size(const struct rpma_mr_remote *mr,
size_t *size);
like. look at that. two lines and a struct forward declaration. so clean, so demure. πΈ
β¨ DESCRIPTION β¨
so what does rpma_mr_remote_get_size() actually do, you ask? bestie it gets the size of the remote memory region. that's it. that's the whole job. no cap. π«Ά
you hand it your remote memory region and it tells you how big it is. iconic behaviour, truly. π
β¨ RETURN VALUE β¨
rpma_mr_remote_get_size()returns0on success β slay π- or a negative error code on failure β not slay π
β οΈ important bestie: on failure,rpma_mr_remote_get_size()does not set the*sizevalue. so don't go reading it thinking you got data, because you did not. π
β¨ ERRORS β¨
rpma_mr_remote_get_size() can fail with the following error:
RPMA_E_INVALβmrorsizeisNULLπ (yeah, pass a real pointer, bestie, we've all been there)
β¨ SEE ALSO β¨
and that's the whole vibe check, bestie. this page came straight out of the RPMA Programmer's Manual, dated 01 April 2024, and yes it's literally titled rpma_mr_remote_get_size(3). go forth and get those remote memory region sizes. 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