pmemset API version 1.0

The PMDK repository on GitHub is the ultimate source of information on PMDK from release 2.0! For all questions and to submit eventual issues please follow to that repository. The PMDK documentation collected here should be valid up to the 1.13.1 release but is maintained only on a best-effort basis and may not reflect the latest state of the art.

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:

  • -ENOMEM - in case of insufficient memory to allocate an instance of struct pmemset_source.
  • PMEMSET_E_INVALID_PMEM2_SOURCE - if the struct pmem2_source is NULL.

SEE ALSO

errno(3), pmem2_source(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.