rpma_mr_get_size(3)
π rpma_mr_get_size β get the size of the local memory region π
okay bestie, this one is short and sweet, it's giving little snack, and it's from the RPMA Programmer's Manual (that's the librpma crew, iykyk). literally the whole job of this function is: you hand it a memory region, it tells you how big it is. that's it. that's the vibe. periodt. β¨
π SYNOPSIS π
#include <librpma.h>
struct rpma_mr_local;
int rpma_mr_get_size(const struct rpma_mr_local *mr, size_t *size);
πΈ DESCRIPTION πΈ
so like, rpma_mr_get_size() pulls the size of a memory region out of your local memory registration object. you pass in the mr, it drops the number into size. no cap, that's the entire plot. π¦
β¨ RETURN VALUE β¨
- returns
0when it goes off without a hitch β slay π - returns a negative error code when it fails β not slay π
and listen: on failure,rpma_mr_get_size()does not set the*sizevalue. so don't be out here reading*sizelike it means something when the call flopped, bestie. it does not. π
π ERRORS π
rpma_mr_get_size() can fail with exactly this one:
RPMA_E_INVALβmrorsizeisNULL. yeah, you handed it a whole nothing where a thing should be. iconic but wrong. π
π«Ά SEE ALSO π«Ά
that's the whole page, no filler, main character energy from start to finish πβ and real quick, the fine print cuties: this is RPMA, dated 01 April 2024, and we are so done here ππ§π
π¦ 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