NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
pmemset_source_alignment() - returns data source alignment
#include <libpmemset.h>
struct pmemset_source;
int pmemset_source_alignment(struct pmemset_source *src, size_t *alignment);
The pmemset_source_alignment() function retrieves the alignment of offset and length needed for pmemset_map(3) to succeed. The alignment is stored in *alignment argument.
The pmemset_source_alignment() function returns 0 on success. If the function fails, the *alignment variable is left unmodified and a negative error code is returned.
The pmemset_source_alignment() can fail with the following errors:
pmemset_map(3), libpmemset(7) and http://pmem.io
The contents of this web site and the associated GitHub repositories are BSD-licensed open source.