Scroll to navigation

libnvmf_get_owner_from_fctx(9) libnvme API manual libnvmf_get_owner_from_fctx(9)

NAME

libnvmf_get_owner_from_fctx - Get the registry owner of a fabrics context

SYNOPSIS

int libnvmf_get_owner_from_fctx (struct libnvme_global_ctx *ctx , struct libnvmf_context *fctx , char **owner );

ARGUMENTS

Global context
Fabrics context describing the connection to check
Returned owner, NULL if no matching controller exists or it is unowned

DESCRIPTION

Convenience wrapper around libnvmf_get_owner_from_tid for callers that already have a libnvmf_context rather than a bare TID. If fctx names an explicit device, its registry entry is checked directly. Otherwise, a controller is resolved from fctx's connection parameters. The owner contract is identical to libnvmf_get_owner_from_tid.

RETURN

0 on success (check owner), negative errno on failure.

libnvmf_get_owner_from_fctx July 2026