OS Manuals

libnvmf_tid_from_fields-libnvme3(2)

libnvmf_tid_from_fields - Allocate a TID from individual field strings.

libnvmf_tid_from_fields(9) libnvme API manual libnvmf_tid_from_fields(9)

libnvmf_tid_from_fields - Allocate a TID from individual field strings.

int libnvmf_tid_from_fields (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 , struct libnvmf_tid **out );

Transport type (e.g. "tcp", "rdma", "fc").
Transport address.
Transport service ID (e.g. "8009").
Subsystem NQN.
Host transport address, or NULL.
Host interface name, or NULL.
Host NQN, or NULL.
Host Identifier, or NULL.
The allocated TID on success; NULL on error.

Convenience constructor. NULL fields are stored as NULL. For an IP transport (tcp, rdma) a numeric traddr/host_traddr is canonicalized; a hostname is rejected -- resolving it is the caller's job, not libnvme's.

0 on success (*out is the allocated TID); -EINVAL if out is NULL or traddr/host_traddr is not numeric on an IP transport; -ENOMEM on allocation failure.

libnvmf_tid_from_fields October 2026

nvme-cli 3.2-r0 · os · ingested 2026-10-31