Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

nvmf_add_ctrl - Connect a controller and update topology

Arguments

h Host to which the controller should be attached c Controller to be connected cfg Default configuration for the controller

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.

Name

nvmf_add_ctrl - Connect a controller and update topology

Return

0 on success; on failure errno is set and -1 is returned. May 2025 nvmf_add_ctrl nvmf_add_ctrl(2)

Synopsis

intnvmf_add_ctrl(nvme_host_th,nvme_ctrl_tc,conststructnvme_fabrics_config*cfg);

See Also