PMEM2_MAP_GET_SIZE(3)
π PMEM2_MAP_GET_SIZE π
okay bestie, welcome to the PMDK Programmer's Manual β yes, THE pmdk, we're in the big leagues now β¨ this one's a tiny little legend of a function and honestly? it's giving "one job, does it perfectly." let's get into it π«Ά
πΈ NAME πΈ
pmem2_map_get_size() β reads mapping size πβ¨
π SYNOPSIS π
#include <libpmem2.h>
size_t pmem2_map_get_size(struct pmem2_map *map);
look at her. one line, no drama, no extra args, just vibes π
π¦ DESCRIPTION π¦
so the pmem2_map_get_size() function reads the size of the created mapping. that's it. that's the whole job. no cap π§
the map parameter points to the structure describing a mapping that was created using the pmem2_map_new(3) function β so like, you gotta have already made your map before you come asking her how big it is, iykyk π
π lowkey the most wholesome function in the whole library: you ask, she tells you, nobody gets hurt.
β RETURN VALUE β
the pmem2_map_get_size() function returns a size of the mapped area. periodt π
π₯ SEE ALSO π₯
and that's the whole page bestie, short and iconic, main character energy from start to finish π
π this has been PMDK β from the PMDK Programmer's Manual β dated 2025-07-24. stan a stable API, mwah ππΈβ¨
π¦ where this page comes from
- fedora 43: libpmem2-devel 2.1.0-4.fc43 Β· BSD-3-Clause
- π the page's license: BSD-3-Clause
- Copyright 2019, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms