PMDK man page

pmem2_vm_reservation_map_find

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO

NAME

pmem2_vm_reservation_map_find() - finds the mapping stored in the virtual memory reservation

SYNOPSIS

#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);

DESCRIPTION

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.

RETURN VALUE

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.

ERRORS

pmem2_vm_reservation_map_find() can fail with the following errors:

SEE ALSO

libpmem2(7), and https://pmem.io