1nvme_ns_get_fd(9)             libnvme API manual             nvme_ns_get_fd(9)
2
3
4

NAME

6       nvme_ns_get_fd - Get associated file descriptor
7

SYNOPSIS

9       int nvme_ns_get_fd (nvme_ns_t n );
10

ARGUMENTS

12       n           Namespace instance
13

DESCRIPTION

15       libnvme will open the file (if not already opened) and keep an internal
16       copy of the file descriptor. Following calls to this API  retrieve  the
17       internal  cached  copy  of  the  file  descriptor. The file will remain
18       opened and the fd will remain cached until the ns object is deleted  or
19       nvme_ns_release_fd is called.
20

RETURN

22       File descriptor associated with n or -1
23
24
25
26October 2023                    nvme_ns_get_fd               nvme_ns_get_fd(9)
Impressum