NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
pmemset_get_store_granularity() - reads effective mappings granularity for pmemset
#include <libpmemset.h>
int pmemset_get_store_granularity(struct pmemset *set, enum pmem2_granularity *g);
The pmemset_get_store_granularity() function reads effective granularity of the set object and puts it in the *g;
The set object has to contain at least one mapped part using pmemset_part_map(3) function, otherwise reading granularity value is pointless and function pmemset_get_store_granularity(3) will fail.
Concept of the granularity is described in libpmem2(7).
The pmemset_get_store_granularity() function returns 0 on success or a negative error code on failure.
pmemset_get_store_granularity() can fail with the following error:
pmemset_config_set_required_store_graularity(3), pmemset_part_map(3), libpmem2**(7), libpmemset(7) and http://pmem.io
The contents of this web site and the associated GitHub repositories are BSD-licensed open source.