LIBNVMF_GET_OWNER_FROM_FCTX-LIBNVME3(2)
π NAME π
libnvmf_get_owner_from_fctx β okay so this one gets you the registry owner of a fabrics context β¨
No cap, that's the whole vibe. This page lives in the libnvme API manual, section 9, and it's here to hand you the owner of a fabrics context like it's passing you a note in class π«Ά
πΈ SYNOPSIS πΈ
int libnvmf_get_owner_from_fctx (struct libnvme_global_ctx *ctx , struct
libnvme_context *fctx , char **owner );
Three little args, and honestly? Iconic signature π
π ARGUMENTS π
ctxβ the global context. Your main character. Everything hangs off this bestie β¨fctxβ the fabrics context describing the connection to check. Like, which connection are we snooping on πownerβ the returned owner. Heads up bestie: this isNULLif there's no matching controller, or if the controller is unowned. So aNULLhere is not a bug, it's a vibe ππ
π¦ DESCRIPTION π¦
So this function is a convenience wrapper around libnvmf_get_owner_from_tid for callers who already have a libnvme_context instead of a bare TID. Literally a glow-up for your call site, ngl π
Here's the tea on how it decides:
- If
fctxnames an explicit device, its registry entry gets checked directly. Straight to the point, no detours, slay π― - Otherwise, a controller is resolved from
fctx's connection parameters. Like, you didn't tell it which one, so it goes and figures it out π§
Either way, the owner contract is identical to libnvme_get_owner_from_tid. Same rules, same energy, no sneaky surprises β lowkey obsessed with that consistency π«Ά
π RETURN π
0on success β but bestie, checkowner, that's the whole point π- negative errno on failure. Not a vibe, but you know what to do with it π
fr fr do not forget to actually look atowneron that0return, okay? A success with an unread pointer is giving "read the docs bestie" π
β Sign-off β
This cutie right here is from the libnvme API manual, dated October 2026 β libnvme girlies stay winning, and this page was brought to you by libnvme_get_owner_from_libnvme_get_owner_from_fctx(9) (yes, that's really how the footer reads, and honestly? she's messy but we love her π) π π¦ β¨
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms