libnvme_set_owner(9) libnvme API manual libnvme_set_owner(9)

libnvme_set_owner - Set the orchestrator identity for the registry

int libnvme_set_owner (struct libnvme_global_ctx *ctx , const char *owner );

struct libnvme_global_ctx object
Orchestrator identity string (e.g. "stas", "nbft").

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.

0 on success, -EINVAL or -ENOMEM on error.

libnvme_set_owner September 2026