DOKK / manpages / debian 12 / libnvme-dev / nvme_open.2.en
nvme_open(2) libnvme API manual nvme_open(2)

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.

nvme_open January 2023