| libnvme_set_owner(9) | libnvme API manual | libnvme_set_owner(9) |
NAME
libnvme_set_owner - Set the orchestrator identity for the registry
SYNOPSIS
int libnvme_set_owner (struct libnvme_global_ctx *ctx , const char *owner );
ARGUMENTS
DESCRIPTION
Records the orchestrator identity used when claiming registry ownership of connections made through ctx. A later call overwrites the previous value; treating the identity as immutable is a policy decision left to the caller. A process that does not participate in the registry simply never calls this.
This is the supported way to record the registry owner; libnvme_create_global_ctx deliberately takes no owner parameter.
See also: libnvmf_get_owner_from_tid and libnvmf_get_owner_from_fctx (fabrics.h) to look up who owns a candidate connection before connecting it, and libnvmf_registry_retrieve (registry.h) to read a live controller's registry entry directly.
RETURN
0 on success, -EINVAL or -ENOMEM on error.
| libnvme_set_owner | September 2026 |