Skip to main content

nvmf_connect_ctrl

Function nvmf_connect_ctrl 

Source
pub unsafe extern "C" fn nvmf_connect_ctrl(c: nvme_ctrl_t) -> c_int
Expand description

nvmf_connect_ctrl() - Connect a controller @c: Controller to be connected

Issues a ‘connect’ command to the NVMe-oF controller. @c must be initialized and not connected to the topology.

Return: 0 on success; on failure errno is set and -1 is returned.