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

NAME

6       nvme_ctrl_get_fd - Get associated file descriptor
7

SYNOPSIS

9       int nvme_ctrl_get_fd (nvme_ctrl_t c );
10

ARGUMENTS

12       c           Controller 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  controller  object  is
19       deleted or nvme_ctrl_release_fd is called.
20

RETURN

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