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

nvme_mi_create_root - Create top-level MI (root) handle.

nvme_root_t nvme_mi_create_root (FILE *fp , int log_level );

File descriptor for logging messages
Logging level to use

Create the top-level (library) handle for creating subsequent endpoint objects. Similar to nvme_create_root, but we provide this to allow linking without the core libnvme.

See nvme_create_root.

new root object, or NULL on failure.

nvme_mi_create_root January 2023