nvme_ns_get_fd2
Get associated file descriptor
Usage
int nvme_ns_get_fd (nvme_ns_t n );
Arguments
- n
-
Namespace instance
Overview
libnvme will open the file (if not already opened) and keep an internal copy of the file descriptor. Following calls to this API retrieve the internal cached copy of the file descriptor. The file will remain opened and the fd will remain cached until the ns object is deleted or nvme_ns_release_fd is called.
Return
File descriptor associated with n or -1
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.