.\" Automatically generated by Pandoc 2.0.6 .\" .TH "PMEM2_CONFIG_SET_VM_RESERVATION" "3" "2022-08-25" "PMDK - pmem2 API version 1.0" "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[]() \- 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[] .fi .SH DESCRIPTION .PP The \f[B]pmem2_config_set_vm_reservation\f[]() function sets the virtual memory reservation and an offset to be used during a mapping. \f[I]rsv\f[] should be already initialized. Please see \f[B]pmem2_vm_reservation_new\f[](3) for details. \f[I]rsv_offset\f[] marks the offset in the reservation for the mapping. .SH RETURN VALUE .PP \f[B]pmem2_config_set_vm_reservation\f[]() function always returns 0. .SH SEE ALSO .PP \f[B]pmem2_vm_reservation_new\f[](3), \f[B]libpmem2\f[](7) and \f[B]\f[]