pmem2_source_get_fd - Man Page

reads file descriptor of the data source

Synopsis

#include <libpmem2.h>

int pmem2_source_get_fd(const struct pmem2_source *src, int *fd);

Description

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.

This function is Linux only, on Windows use pmem2_source_get_handle(3).

Return Value

The pmem2_source_get_fd() function returns 0 on success or a negative error code on failure.

Errors

The pmem2_source_get_fd() can fail with the following errors:

See Also

pmem2_source_get_handle(3), libpmem2(7) and <http://pmem.io>

Referenced By

pmem2_source_get_handle(3).

2020-10-28 PMDK - pmem2 API version 1.0 PMDK Programmer's Manual