| 1 |
.TH "nvmf_add_ctrl" 9 "nvmf_add_ctrl" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvmf_add_ctrl \- Connect a controller and update topology |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "int" nvmf_add_ctrl |
| 6 |
.BI "(nvme_host_t h " "," |
| 7 |
.BI "nvme_ctrl_t c " "," |
| 8 |
.BI "const struct nvme_fabrics_config *cfg " ");" |
| 9 |
.SH ARGUMENTS |
| 10 |
.IP "h" 12 |
| 11 |
Host to which the controller should be attached |
| 12 |
.IP "c" 12 |
| 13 |
Controller to be connected |
| 14 |
.IP "cfg" 12 |
| 15 |
Default configuration for the controller |
| 16 |
.SH "DESCRIPTION" |
| 17 |
Issues a 'connect' command to the NVMe-oF controller and inserts \fIc\fP |
| 18 |
into the topology using \fIh\fP as parent. |
| 19 |
\fIc\fP must be initialized and not connected to the topology. |
| 20 |
.SH "RETURN" |
| 21 |
0 on success; on failure errno is set and -1 is returned. |