Reference

libnvmf_get_owner_from_fctx-libnvme3(2)

Get the registry owner of a fabrics context

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

ctx

Global context

fctx

Fabrics context describing the connection to check

owner

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.