DOKK / manpages / debian 11 / libpmem2-dev / pmem2_map_get_address.3.en
PMEM2_MAP_GET_ADDRESS(3) PMDK Programmer's Manual PMEM2_MAP_GET_ADDRESS(3)

pmem2_map_get_address() - reads mapping address

#include <libpmem2.h>
void *pmem2_map_get_address(struct pmem2_map *map);
    

The pmem2_map_get_address() function reads address of the created mapping. The map parameter points to the structure describing mapping created using the pmem2_map_new(3) function.

The pmem2_map_get_address() function returns a pointer to the mapped area.

pmem2_map_new(3), libpmem2(7) and <https://pmem.io>

2020-10-28 PMDK - pmem2 API version 1.0