NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
pmem2_vm_reservation_map_find() - finds the mapping stored in the virtual memory reservation
#include <libpmem2.h>
struct pmem2_vm_reservation;
int pmem2_vm_reservation_map_find(struct pmem2_vm_reservation *rsv,
size_t reserv_offset, size_t len, struct pmem2_map **map);
The pmem2_vm_reservation_map_find() function searches for the earliest mapping, stored in the virtual memory reservation, intersecting with the interval designated by reserv_offset and len variables.
The pmem2_vm_reservation_map_find() returns 0 on success or a negative error on failure.
It passes an address to the found mapping via user provided map pointer variable on success, otherwise it passes NULL value when no mapping was found.
pmem2_vm_reservation_map_find() can fail with the following errors:
libpmem2(7), and https://pmem.io
The contents of this web site and the associated GitHub repositories are BSD-licensed open source.