OS Manuals

libnvmf_registry_update-libnvme3(2)

libnvmf_registry_update - Update an attribute in a controller's registry entry

libnvmf_registry_update(9) libnvme API manual libnvmf_registry_update(9)

libnvmf_registry_update - Update an attribute in a controller's registry entry

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

libnvme global context; must not be NULL
Kernel device name (e.g. "nvme3")
Attribute name to update (e.g. "owner")
New attribute value, or NULL to remove the attribute file

Writes the attribute value to the controller's registry entry using an atomic tmp-file rename. If the entry does not exist, it is created atomically the same way as on connect, including the best-effort seqnum stamp for the udev cleanup rule. If value is NULL, the attribute file is removed instead; a missing entry is left alone in this case.

0 on success, negative errno from underlying system calls otherwise.

libnvmf_registry_update October 2026

nvme-cli 3.2-r0 · os · ingested 2026-10-31