libnvmf\_registry\_attr\_equal(9) libnvme API manual libnvmf\_registry\_attr\_equal(9)

# [NAME](#NAME)

libnvmf\_registry\_attr\_equal - Compare a registry attribute to a value

# [SYNOPSIS](#SYNOPSIS)

**int libnvmf\_registry\_attr\_equal** **(struct libnvme\_global\_ctx \*ctx ,** **const char \*device ,** **const char \*attr ,** **const char \*value );**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

libnvme global context; must not be NULL

[device](#device)

Kernel device name (e.g. "nvme3")

[attr](#attr)

Attribute name to compare (e.g. "owner")

[value](#value)

Value to compare against; NULL means "attribute absent"

# [RETURN](#RETURN)

0 if *attr* equals *value* (a missing attribute equals a NULL *value*), &gt;0 if it differs, negative errno on a read error.

libnvmf\_registry\_attr\_equal October 2026

---

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