libnvmf_config_read-libnvme3(2)

libnvmf_config_read-libnvme32

Read and resolve a connection configuration.

Usage

int libnvmf_config_read (struct libnvme_global_ctx *ctx , const char *file , struct libnvmf_config **out );

Arguments

ctx

libnvme global context

file

main configuration file, or NULL for the default (/etc/nvme/nvme-fabrics.conf). The drop-in directory is always derived from the file name: the .conf files under <file>.d/.

out

the resolved configuration on success; NULL on error

Overview

Reads the main file (if it exists) and the drop-ins (if the directory exists) and resolves them into the flat connection list. An absent configuration is valid and yields an empty list. Any validation error in any file fails the read as a unit; diagnostics carry file:line and are reported through ctx.

Return

0 on success (*out is the resolved configuration), negative errno otherwise (*out is NULL).

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