libnvmf_registry_attr_equal-libnvme32
Compare a registry attribute to a value
Usage
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.