table of contents
- experimental 3.2-1
| libnvmf_registry_attr_for_each(2) | libnvme API manual | libnvmf_registry_attr_for_each(2) |
NAME¶
libnvmf_registry_attr_for_each - Iterate over attributes in a controller's registry entry
SYNOPSIS¶
int libnvmf_registry_attr_for_each (struct libnvme_global_ctx *ctx , const char *device , void (*callback)(const char *attr, const char *value, void *user_data) , void *user_data );
ARGUMENTS¶
DESCRIPTION¶
Opens the registry directory for device and invokes callback for each attribute file found. Attribute files that disappear during iteration (e.g. because the device is removed concurrently) are silently skipped.
RETURN¶
0 on success, -ENOENT if the device directory does not exist at the time of the initial open, negative errno otherwise.
| libnvmf_registry_attr_for_each | October 2026 |