OS Manuals

libnvmf_tid_parse_strict-libnvme3(2)

libnvmf_tid_parse_strict - Like libnvmf_tid_parse(), but reject malformed input.

libnvmf_tid_parse_strict(9) libnvme API manual libnvmf_tid_parse_strict(9)

libnvmf_tid_parse_strict - Like libnvmf_tid_parse(), but reject malformed input.

int libnvmf_tid_parse_strict (struct libnvme_global_ctx *ctx , const char *str , struct libnvmf_tid **out );

Global context for logging.
Input string.
The allocated TID on success; NULL on error.

Same as libnvmf_tid_parse except that a malformed token -- a non-empty bare token (no '='), an empty value, or an unrecognized key -- fails the whole parse instead of being skipped. Empty tokens (from ";;" or a trailing ';') are still benign. Useful when an unrecognized key should be treated as an error (e.g. a typo in a hand-edited config) rather than silently ignored.

0 on success (*out is the allocated TID); -EINVAL if ctx, out or str is NULL, or on a malformed token; -ENOMEM on allocation failure.

libnvmf_tid_parse_strict October 2026

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