---
name: "libnvmf_exclusion_match-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_match-libnvme3"
---

# libnvmf\_exclusion\_match-libnvme3(2)

check whether a controller matches any exclusion entry.

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

- ctx

  libnvme global context; must not be NULL

- tid

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

## DESCRIPTION

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

## RETURN

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