Reference

libnvmf_config_emit_add-libnvme3(2)

Add a connection to a configuration emitter.

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

emitter

Configuration emitter.

is_dc

Discovery controller if true, I/O controller if false.

transport

Transport type. Required.

traddr

Transport address. Required. Written verbatim, even if a hostname; resolution happens at connect time, not here.

trsvcid

Transport service ID, or NULL.

subsysnqn

Subsystem NQN. Required unless is_dc is true.

host_traddr

Host transport address, or NULL.

host_iface

Host interface, or NULL.

hostnqn

Host NQN, or NULL.

hostid

Host identifier, or NULL.

params

Connection parameters, or NULL.

hostsymname

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.