OS Manuals

libnvmf_exclusion_add_subsysnqn-libnvme3(2)

libnvmf_exclusion_add_subsysnqn - append a subsystem-NQN-only entry.

libnvmf_exclusion_add_subsysnqn(9) libnvme API manual libnvmf_exclusion_add_subsysnqn(9)

libnvmf_exclusion_add_subsysnqn - append a subsystem-NQN-only entry.

int libnvmf_exclusion_add_subsysnqn (struct libnvme_global_ctx *ctx , const char *name , const char *subsysnqn );

libnvme global context; must not be NULL
list name
subsystem NQN to exclude; must not be NULL or empty

Builds an exclusion entry matching every controller of a subsystem (the entry constrains only the NQN) inside libnvme -- the caller needs no knowledge of the on-disk entry format -- then appends it via libnvmf_exclusion_add. Creates the list if it does not exist.

0 on success, -EINVAL if ctx or subsysnqn is NULL/empty, negative errno otherwise.

libnvmf_exclusion_add_subsysnqn October 2026

nvme-cli 3.2-r0 · os · ingested 2026-10-31