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