Scroll to navigation

libnvme_open(9) libnvme API manual libnvme_open(9)

NAME

libnvme_open - Open an nvme controller or namespace device

SYNOPSIS

int libnvme_open (struct libnvme_global_ctx *ctx , const char *name , struct libnvme_transport_handle **hdl );

ARGUMENTS

struct libnvme_global_ctx object
The basename of the device to open
Transport handle to return

DESCRIPTION

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

RETURN

0 on success, negative error code otherwise.

libnvme_open July 2026