libnvmf_create_ctrl(9) libnvme API manual libnvmf_create_ctrl(9)

libnvmf_create_ctrl - Allocate an unconnected NVMe controller

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

struct libnvme_global_ctx object
Fabrics context
struct libnvme_ctrl object to return

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).

0 on success, negative error code otherwise.

libnvmf_create_ctrl September 2026