.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "" "" "2023-05-26" "PMDK - " "PMDK Programmer's Manual" .hy .\" SPDX-License-Identifier: BSD-3-Clause .\" Copyright 2020, Intel Corporation .SH NAME .PP \f[B]pmem2_config_set_vm_reservation\f[R]() - sets the pmem2_vm_reservation structure basing on the values in the pmem2_config structure .SH SYNOPSIS .IP .nf \f[C] #include 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); \f[R] .fi .SH DESCRIPTION .PP The \f[B]pmem2_config_set_vm_reservation\f[R]() function sets the virtual memory reservation and an offset to be used during a mapping. \f[I]rsv\f[R] should be already initialized. Please see \f[B]pmem2_vm_reservation_new\f[R](3) for details. \f[I]rsv_offset\f[R] marks the offset in the reservation for the mapping. .SH RETURN VALUE .PP \f[B]pmem2_config_set_vm_reservation\f[R]() function always returns 0. .SH SEE ALSO .PP \f[B]pmem2_vm_reservation_new\f[R](3), \f[B]libpmem2\f[R](7) and \f[B]\f[R]