---
name: "libnvmf_tid_str-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvmf_tid_str-libnvme3"
---

# libnvmf\_tid\_str-libnvme3(2)

Human-readable string form of a TID, for logging.

## NAME

libnvmf\_tid\_str - Human-readable string form of a TID, for logging.

## SYNOPSIS

**const char \* libnvmf\_tid\_str** **(const struct libnvmf\_tid \*tid** *);*

## ARGUMENTS

- tid

  The transport ID.

## DESCRIPTION

Returns "(transport, traddr, trsvcid\[, subsysnqn\]\[, host\_iface\]\[, host\_traddr\])" — the same rendering nvme-stas uses, so logs from both tools line up. hostnqn and hostid are omitted.  Lazily computed and cached; invalidated by any setter.

## RETURN

Cached string, or NULL if *tid* is NULL or on allocation failure.
