PMEMSET_SOURCE_DELETE(3)

NAME

pmemset_source_delete() - delete an instance of persistent memory data source

SYNOPSIS

    #include <libpmemset.h>
    struct pmemset_source;
    int pmemset_source_delete(struct pmemset_source **src);

DESCRIPTION

The pmemset_source_delete() function frees the data source obtained using either pmemset_source_from_file(3) or pmemset_source_from_pmem2(3) function. The user-provided variable pointed by *src is set to NULL. If *src is NULL, no operation is performed.

RETURN VALUE

The pmemset_source_delete() function always returns 0.

SEE ALSO

pmemset_source_from_file(3), pmemset_source_from_pmem2(3), libpmemset(7) and <http://pmem.io>