libnvmf_exclusion_add_subsysnqn-libnvme3(2)

libnvmf_exclusion_add_subsysnqn-libnvme32

Append a subsystem-nqn-only entry.

Usage

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

Arguments

ctx

libnvme global context; must not be NULL

name

list name

subsysnqn

subsystem NQN to exclude; must not be NULL or empty

Overview

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.

Return

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

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.