---
name: "pmem2_map_get_address"
section: "3"
platform: "linux"
package: "libpmem2-dev"
version: "1.13.1-1.1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pmem2_map_get_address"
---

# pmem2\_map\_get\_address(3)

reads mapping address

## NAME

**pmem2\_map\_get\_address**() - reads mapping address

## SYNOPSIS

-

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

## DESCRIPTION

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)](/pmem2_map_new/3.md) function.

## RETURN VALUE

The **pmem2\_map\_get\_address**() function returns a pointer to the mapped area.

## SEE ALSO

[**pmem2\_map\_new**(3)](/pmem2_map_new/3.md), [**libpmem2**(7)](/libpmem2/7.md) and **\<https://pmem.io\>**
