Reference

libnvmf_exclusion_add_subsysnqn-libnvme3(2)

append a subsystem-NQN-only entry.

NAME

libnvmf_exclusion_add_subsysnqn - append a subsystem-NQN-only entry.

SYNOPSIS

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

DESCRIPTION

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.