libnvmf\_exclusion\_entry\_for\_each(9) libnvme API manual libnvmf\_exclusion\_entry\_for\_each(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#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](#ARGUMENTS)

[ctx](#ctx)

libnvme global context; must not be NULL

[name](#name)

list name (basename without .conf suffix)

[callback](#callback)

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

[user\_data](#user_data)

caller context passed to *callback*

# [RETURN](#RETURN)

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

libnvmf\_exclusion\_entry\_for\_each October 2026

---

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