Scroll to navigation

libnvmf_add_ctrl(9) libnvme API manual libnvmf_add_ctrl(9)

NAME

libnvmf_add_ctrl - Connect a controller and update topology

SYNOPSIS

int libnvmf_add_ctrl (libnvme_host_t h , libnvme_ctrl_t c );

ARGUMENTS

Host to which the controller should be attached
Controller to be connected

DESCRIPTION

Issues a 'connect' command to the NVMe-oF controller and inserts c into the topology using h as parent. c must be initialized and not connected to the topology.

RETURN

0 on success, negative error code otherwise.

libnvmf_add_ctrl July 2026