has_pmem
static bool has_pmem, cached;
has_pmem = access(path, F_OK) == 0;
return has_pmem;
*result = has_pmem() ? 1 : 0;