libnvmf_exclusion_add_ctrl-libnvme3(2)

libnvmf_exclusion_add_ctrl-libnvme32

Append an entry built from a controller.

Usage

int libnvmf_exclusion_add_ctrl (struct libnvme_global_ctx *ctx , const char *name , struct libnvme_ctrl *c );

Arguments

ctx

libnvme global context; must not be NULL

name

list name

c

connected controller; the entry's transport, traddr, trsvcid, subsysnqn and (when set) host-iface are taken from it

Overview

Builds the exclusion entry from the controller's transport parameters 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 c is NULL or the controller lacks a transport/traddr/subsysnqn, negative errno otherwise.

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