libnvmf_create_ctrl-libnvme3(2)

libnvmf_create_ctrl-libnvme32

Allocate an unconnected nvme controller

Usage

int libnvmf_create_ctrl (struct libnvme_global_ctx *ctx , struct libnvmf_context *fctx , struct libnvme_ctrl **c );

Arguments

ctx

struct libnvme_global_ctx object

fctx

Fabrics context

c

struct libnvme_ctrl object to return

Overview

Creates an unconnected controller to be used for libnvme_add_ctrl. The controller carries over fctx's connection parameters together with its authentication and transport encryption settings (kxchap keys, keyring, TLS key and TLS key identity).

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.