libnvmf_get_owner_from_fctx-libnvme32
Get the registry owner of a fabrics context
Usage
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 |
Overview
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.