OS Manuals

libnvmf_exclusion_add_ctrl-libnvme3(2)

libnvmf_exclusion_add_ctrl - append an entry built from a controller.

libnvmf_exclusion_add_ctrl(9) libnvme API manual libnvmf_exclusion_add_ctrl(9)

libnvmf_exclusion_add_ctrl - append an entry built from a controller.

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

libnvme global context; must not be NULL
list name
connected controller; the entry's transport, traddr, trsvcid, subsysnqn and (when set) host-iface are taken from it

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.

0 on success, -EINVAL if ctx or c is NULL or the controller lacks a transport/traddr/subsysnqn, negative errno otherwise.

libnvmf_exclusion_add_ctrl October 2026

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