libnvmf_exclusion_match-libnvme32
Check whether a controller matches any exclusion entry.
Usage
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".
Overview
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.