comment: <> (pmem2_source_get_fd.3 – man page for pmem2_source_get_fd
NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
pmem2_source_get_fd() - reads file descriptor of the data source
#include <libpmem2.h>
int pmem2_source_get_fd(const struct pmem2_source *src, int *fd);
The pmem2_source_get_fd() function reads the file descriptor of struct pmem2_source* object describing the data source and returns it by fd parameter.
The pmem2_source_get_fd() function returns 0 on success or a negative error code on failure.
The pmem2_source_get_fd() can fail with the following errors:
libpmem2(7) and https://pmem.io
The contents of this web site and the associated GitHub repositories are BSD-licensed open source.