PMDK man page

pmemset_source_from_pmem2

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO

NAME

pmemset_source_from_pmem2() - creates an instance of persistent set data source

SYNOPSIS

#include <libpmemset.h>

int pmemset_source_from_pmem2(struct pmemset_source **src, struct pmem2_source *pmem2_src);

DESCRIPTION

The pmemset_source_from_pmem2() function instantiates a new struct pmemset_source object describing set of data. The pmemset_source is created using pmem2_source from libpmem2(7) library. For more details see pmem2_source(3) man page.

RETURN VALUE

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

ERRORS

pmemset_source_from_pmem2() can fail with the following errors:

SEE ALSO

errno(3), pmem2_source(3), libpmem2(7), libpmemset(7) and http://pmem.io