PMEM2_MAP_GET_ADDRESS(3)
β¨ pmem2_map_get_address() β¨
okay bestie, so this one lives in the PMDK Programmer's Manual and honestly? it's a little baby function that does exactly one thing and does it flawlessly. no notes. π
πΈ NAME πΈ
pmem2_map_get_address() β reads mapping address π«Ά
π SYNOPSIS π
#include <libpmem2.h>
void *pmem2_map_get_address(struct pmem2_map *map);
π¦ DESCRIPTION π¦
so like, the pmem2_map_get_address() function reads the address of the created mapping. that's it. that's the whole job. she's an icon, she's a legend, and she is not doing anything else today. π
the map parameter points to the structure describing a mapping that was created using the pmem2_map_new(3) function. so basically: you already did the whole mapping thing with pmem2_map_new(3), and now you're just asking "hey girl, where did you put it?" and she tells you. periodt. β¨
ngl if you hand her amapthat didn't come frompmem2_map_new(3), that's on you. she's reading what you gave her, no vibe check included. π
π RETURN VALUE π
the pmem2_map_get_address() function returns a pointer to the mapped area. that's the address, bestie. that's the whole tea. π
π SEE ALSO π
and that's the whole page, no cap. this was PMDK, dated 2025-07-24 β mwah, iconic, obsessed, bye bestie ππ§ββοΈ
π¦ 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