libnvmf\_exclusion\_match(9) libnvme API manual libnvmf\_exclusion\_match(9)

# [NAME](#NAME)

libnvmf\_exclusion\_match - check whether a controller matches any exclusion entry.

# [SYNOPSIS](#SYNOPSIS)

**bool libnvmf\_exclusion\_match** **(struct libnvme\_global\_ctx \*ctx ,** **const struct libnvmf\_tid \*tid );**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

libnvme global context; must not be NULL

[tid](#tid)

Transport ID identifying the controller. All fields are optional; NULL means "this connection has no value for this field".

# [DESCRIPTION](#DESCRIPTION)

Re-reads the exclusion directory on every call (no caching). Entries with unknown keys never match (fail-safe).

# [RETURN](#RETURN)

true if any exclusion entry matches, false otherwise. Returns false (not excluded / fail-open) if the directory cannot be read.

libnvmf\_exclusion\_match October 2026

---

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