Ubuntu Manpages

nvme_open

Open an nvme controller or namespace device

int nvme_open (const char *name );

The basename of the device to open

This will look for the handle in /dev/ and validate the name and filetype match linux conventions.

A file descriptor for the device on a successful open, or -1 with errno set otherwise.