pmem2 API version 1.0

The PMDK repository on GitHub is the ultimate source of information on PMDK from release 2.0! For all questions and to submit eventual issues please follow to that repository. The PMDK documentation collected here should be valid up to the 1.13.1 release but is maintained only on a best-effort basis and may not reflect the latest state of the art.

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

NAME

pmem2_config_set_vm_reservation() - sets the pmem2_vm_reservation structure basing on the values in the pmem2_config structure

SYNOPSIS

#include <libpmem2.h>

struct pmem2_config;
struct pmem2_vm_reservation;
int pmem2_config_set_vm_reservation(struct pmem2_config *config,
		struct pmem2_vm_reservation *rsv, size_t rsv_offset);

DESCRIPTION

The pmem2_config_set_vm_reservation() function sets the virtual memory reservation and an offset to be used during a mapping. rsv should be already initialized. Please see pmem2_vm_reservation_new(3) for details. rsv_offset marks the offset in the reservation for the mapping.

RETURN VALUE

pmem2_config_set_vm_reservation() function always returns 0.

SEE ALSO

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

The contents of this web site and the associated GitHub repositories are BSD-licensed open source.