libnvmf_add_ctrl-libnvme32
Connect a controller and update topology
Usage
int libnvmf_add_ctrl (struct libnvme_host *h , struct libnvme_ctrl *c );
Arguments
h
|
Host to which the controller should be attached |
|---|---|
c
|
Controller to be connected |
Overview
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.