libnvmf_traddr_is_numeric(9)
π
libnvmf_traddr_is_numeric β¨
okay bestie, welcome to the libnvme API manual page for libnvmf_traddr_is_numeric(9) β she's a lil function with a big job and honestly? iconic. π
πΈ NAME πΈ
libnvmf_traddr_is_numeric β literally just: would this address survive TID construction? π
π¦ SYNOPSIS π¦
bool libnvmf_traddr_is_numeric (const char *traddr );
β¨ ARGUMENTS β¨
traddrβ a candidatetraddr/host_traddr, orNULL. that's it, that's the whole vibe check π«Ά
π DESCRIPTION π
so here's the tea, bestie: the TID constructors are picky. they accept a numeric IP only and they will straight-up reject a hostname. no cap. π
this function lets a caller check a candidate address β and decide whether it must resolve it first β before building the TID. and the slay part? it uses the exact same definition of "numeric" that the constructors use internally. same brain, same rules, fr fr. π§ β¨
and yes, that definition includes an IPv6 scope suffix, which counts as numeric. so don't come for her about that one, she knows. π
π₯ RETURN π₯
trueiftraddris a numeric address π₯falseotherwise β and that includes whentraddrisNULL, or when there's an allocation failure while checking π
ngl, that secondfalseis the sneaky one β allocation failure also gives youfalse, so don't assumefalsealways means "not numeric". π
π SEE ALSO π
...okay there's genuinely nothing else listed here, so just go forth and build those TIDs, main character. π
π that's the whole page, bestie β written through-and-through and not copy-pasted, promise. this gem comes to you from the libnvme API manual, dated October 2026, and the page header herself is libnvmf_traddr_is_numeric(9) β footer energy: October 2026 Β· libnvmf_traddr_is_numeric Β· libnvmf_traddr_is_numeric(9). mwah, bye ππ
π¦ 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