.TH "libnvmf_create_ctrl" 9 "libnvmf_create_ctrl" "September 2026" "libnvme API manual" LINUX .SH NAME libnvmf_create_ctrl \- Allocate an unconnected NVMe controller .SH SYNOPSIS .B "int" libnvmf_create_ctrl .BI "(struct libnvme_global_ctx *ctx " "," .BI "struct libnvmf_context *fctx " "," .BI "struct libnvme_ctrl **c " ");" .SH ARGUMENTS .IP "ctx" 12 struct libnvme_global_ctx object .IP "fctx" 12 Fabrics context .IP "c" 12 \fIstruct libnvme_ctrl\fP object to return .SH "DESCRIPTION" Creates an unconnected controller to be used for \fBlibnvme_add_ctrl\fP. The controller carries over \fIfctx\fP's connection parameters together with its authentication and transport encryption settings (kxchap keys, keyring, TLS key and TLS key identity). .SH "RETURN" 0 on success, negative error code otherwise.