libnvmf_add_ctrl-libnvme3(2)

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.

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.