---
name: "libnvmf_exclusion_add-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvmf_exclusion_add-libnvme3"
---

# libnvmf\_exclusion\_add-libnvme3(2)

append an entry to a named list (atomic write).

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

- ctx

  libnvme global context; must not be NULL

- name

  list name

- entry

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

## 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

0 on success, negative errno otherwise.
