---
name: "libnvmf_exclusion_entry_valid-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_exclusion_entry_valid-libnvme3"
---

# libnvmf\_exclusion\_entry\_valid-libnvme3(2)

validate an entry string.

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

- ctx

  libnvme global context; must not be NULL

- entry

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

## 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

true if the entry is valid, false otherwise.
