Reference

libnvmf_registry_attr_equal-libnvme3(2)

Compare a registry attribute to a value

NAME

libnvmf_registry_attr_equal - Compare a registry attribute to a value

SYNOPSIS

int libnvmf_registry_attr_equal (struct libnvme_global_ctx *ctx , const char *device , const char *attr , const char *value );

ARGUMENTS

ctx

libnvme global context; must not be NULL

device

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

attr

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

value

Value to compare against; NULL means "attribute absent"

RETURN

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