libnvmf\_exclusion\_entry\_valid(9) libnvme API manual libnvmf\_exclusion\_entry\_valid(9)

# [NAME](#NAME)

libnvmf\_exclusion\_entry\_valid - validate an entry string.

# [SYNOPSIS](#SYNOPSIS)

**bool libnvmf\_exclusion\_entry\_valid** **(struct libnvme\_global\_ctx \*ctx ,** **const char \*entry );**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

libnvme global context; must not be NULL

[entry](#entry)

Exclusion entry, e.g. "transport=tcp;traddr=1.2.3.4".

# [DESCRIPTION](#DESCRIPTION)

Returns true when every key is known and the entry has at least one recognized field; false for unknown/bare keys or an empty/field-less entry. Use this to pre-validate a hand-edited entry before writing it.

# [RETURN](#RETURN)

true if the entry is valid, false otherwise.

libnvmf\_exclusion\_entry\_valid October 2026

---

Document: libnvmf_exclusion_entry_valid-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
