Scroll to navigation

libnvmf_config_emit_add(2) libnvme API manual libnvmf_config_emit_add(2)

NAME

libnvmf_config_emit_add - Add a connection to a configuration emitter.

SYNOPSIS

int libnvmf_config_emit_add (struct libnvmf_config_emitter *emitter , bool is_dc , const char *transport , const char *traddr , const char *trsvcid , const char *subsysnqn , const char *host_traddr , const char *host_iface , const char *hostnqn , const char *hostid , const struct libnvmf_params *params , const char *hostsymname );

ARGUMENTS

Configuration emitter.
Discovery controller if true, I/O controller if false.
Transport type. Required.
Transport address. Required. Written verbatim, even if a hostname; resolution happens at connect time, not here.
Transport service ID, or NULL.
Subsystem NQN. Required unless is_dc is true.
Host transport address, or NULL.
Host interface, or NULL.
Host NQN, or NULL.
Host identifier, or NULL.
Connection parameters, or NULL.
Host symbolic name, or NULL.

DESCRIPTION

The parameter set is copied by the emitter.

RETURN

* 0 on success. * -EINVAL if a required parameter is missing or if hostsymname conflicts with an existing persona. * -ENOMEM if memory allocation fails.

libnvmf_config_emit_add October 2026