PMDK man page

pmemset_get_store_granularity

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO

NAME

pmemset_get_store_granularity() - reads effective mappings granularity for pmemset

SYNOPSIS

#include <libpmemset.h>

int pmemset_get_store_granularity(struct pmemset *set, enum pmem2_granularity *g);

DESCRIPTION

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).

RETURN VALUE

The pmemset_get_store_granularity() function returns 0 on success or a negative error code on failure.

ERRORS

pmemset_get_store_granularity() can fail with the following error:

SEE ALSO

pmemset_config_set_required_store_graularity(3), pmemset_part_map(3), libpmem2(7), **libpmemset(7) and http://pmem.io