Sponsor:

Your company here ā€” click to reach over 10,000 unique daily visitors

nvme_ctrl_get_fd - Man Page

Get associated file descriptor

Synopsis

int nvme_ctrl_get_fd (nvme_ctrl_t c );

Arguments

c

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

Return

File descriptor associated with c or -1

Info

June 2024 libnvme API manual