libnvmf\_exclusion\_add(9) libnvme API manual libnvmf\_exclusion\_add(9)

# [NAME](#NAME)

libnvmf\_exclusion\_add - append an entry to a named list (atomic write).

# [SYNOPSIS](#SYNOPSIS)

**int libnvmf\_exclusion\_add** **(struct libnvme\_global\_ctx \*ctx ,** **const char \*name ,** **const char \*entry );**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

libnvme global context; must not be NULL

[name](#name)

list name

[entry](#entry)

semicolon-separated key=value string (e.g. "transport=tcp;traddr=192.168.1.1")

# [DESCRIPTION](#DESCRIPTION)

Creates the list if it does not exist. Validates the entry for unknown keys before writing; returns -EINVAL if the entry is invalid.

# [RETURN](#RETURN)

0 on success, negative errno otherwise.

libnvmf\_exclusion\_add October 2026

---

Document: libnvmf_exclusion_add-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
