table of contents
nvme_ns_get_fd(9) | libnvme API manual | nvme_ns_get_fd(9) |
NAME¶
nvme_ns_get_fd - Get associated file descriptor
SYNOPSIS¶
int nvme_ns_get_fd (nvme_ns_t n );
ARGUMENTS¶
- n
- Namespace instance
DESCRIPTION¶
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
nvme_ns_get_fd | October 2024 |