---
name: "libnvmf_exclusion_entry_for_each-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_entry_for_each-libnvme3"
---

# libnvmf\_exclusion\_entry\_for\_each-libnvme3(2)

iterate over entries in a named list.

## NAME

libnvmf\_exclusion\_entry\_for\_each - iterate over entries in a named list.

## SYNOPSIS

**int libnvmf\_exclusion\_entry\_for\_each** **(struct libnvme\_global\_ctx \*ctx** *,* **const char \*name** *,* **void (\*callback)(const char \*entry, void \*user\_data)** *,* **void \*user\_data** *);*

## ARGUMENTS

- ctx

  libnvme global context; must not be NULL

- name

  list name (basename without .conf suffix)

- callback

  called with the raw entry string (e.g. "transport=tcp;traddr=...")

- user\_data

  caller context passed to *callback*

## RETURN

0 on success, -ENOENT if the list does not exist, negative errno otherwise.
