PMEMSET_CONFIG_SET_RESERVATION(3)

NAME

pmemset_config_set_reservation() - sets a reservation for entire pmemset to use

SYNOPSIS

    #include <libpmemset.h>
    struct pmemset_config;
    void pmemset_config_set_reservation(struct pmemset_config *config,
            struct pmem2_vm_reservation *rsv);

DESCRIPTION

The pmemset_config_set_reservation() function sets a virtual memory reservation for entire pmemset object.

Setting the reservation in pmemset configuration limits the future part mappings to the virtual address space spanned by the provided reservation. Every part mapping is made to the provided reservation, instead of the virtual address space of the process calling pmemset_map(3). For more information about part mapping behavior and virtual memory reservation creation please see pmemset_map(3) and pmem2_vm_reservation_new(3), respectively.

RETURN VALUE

The pmemset_config_set_reservation() does not return any value.

SEE ALSO

pmem2_vm_reservation_new(3),pmemset_map(3), pmemset_new(3), libpmemset(7) and <http://pmem.io>