libnvmf_tid_str(9)
π libnvmf_tid_str(9) β the libnvme API manual, bestie edition π
okay so real quick, this page lives in the libnvme API manual and it's all about libnvmf_tid_str β say that three times fast, i dare you π«Ά
β¨ NAME β¨
libnvmf_tid_str β bestie, it gives you the human-readable string form of a TID, and likeβ¦ it's for logging. that's the whole vibe π
πΈ SYNOPSIS πΈ
const char * libnvmf_tid_str (const struct libnvmf_tid *tid );
π¦ ARGUMENTS π¦
tidβ the transport ID. that's it. that's the whole list, iconic of it honestly π
β DESCRIPTION β
so it returns a string shaped exactly like this:
(transport, traddr, trsvcid[, subsysnqn][, host_iface][, host_traddr])
and no cap, this is the same rendering that nvme-stas uses, so logs from both tools line up perfectly β matching outfits, fr fr π
lowkey important: hostnqn and hostid are omitted. not invited to the function, not coming to the party π
also it's lazily computed and cached (efficient queen β¨), and any setter invalidates that cache. so the second someone touches a setter, the cached string is like "i don't know her" π
π₯ RETURN π₯
you get the cached string back π β or NULL if tid is NULL, or if the allocation failed π (yes. both. those are the only two reasons. do not invent more.)
ngl if you see aNULLcome back, check yourtidfirst before you start spiralling π«Ά
and that's the page, bestie β brought to you by the libnvme API manual, dated October 2026, and libnvmf_tid_str signing off with main character energy ππ¦β¨
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms