libnvmf_get_owner_from_tid(9)
π libnvmf_get_owner_from_tid(9) π
okay so bestie, welcome to the libnvme API manual β specifically the page for libnvmf_get_owner_from_tid, and no cap, this one's a little lookup queen. She finds out who owns a transport ID. That's it. That's the whole vibe. π
β¨ NAME β¨
libnvmf_get_owner_from_tid β get the registry owner of a transport ID π«Ά
πΈ SYNOPSIS πΈ
int libnvmf_get_owner_from_tid (struct libnvme_global_ctx *ctx , const
struct libnvmf_tid *tid , char **owner );
literally just three args, she's low maintenance π
π¦ ARGUMENTS π¦
ctxβ the global context. your whole world, basically. πtidβ the transport ID that identifies which connection we're checking. like a little name tag for the connection π₯ownerβ the returned owner. it'sNULLif there's no matching controller, or if that controller is unowned. soNULLhere is doing double duty, iykyk π
π DESCRIPTION π
so what she does is: resolve the controller, if any, that matches tid, and then report that controller's registry owner. and that is all she does. she does not connect, disconnect, or otherwise modify controller state. she's a read-only icon, a spectator, main character energy but make it passive π
when a matching owned controller exists, owner gets set to a newly allocated string β and yes bestie, the caller must free it. that's your responsibility, not hers. do not abandon it. π
otherwise, owner is set to NULL. simple as.
but here's the important bit, fr fr: a negative errno return means the lookup failed. it is never used to report that no owner exists. those are two completely different things and mixing them up is a vibe check you will fail π so like, don't conflate them, okay?
also see:libnvme_set_owner(inlib.h) if you wanna declare an orchestrator's own identity β¨, andlibnvmf_registry_retrieve(inregistry.h) if you wanna read a live controller's registry entry by device name instead of by TID. two different routes to the same-ish info, pick your fighter π¦
β RETURN β
0on success β but checkowner, babes, that's the whole point π- negative errno on failure π
October 2026 πΈ β that's the date, and the source/version is that slightly unhinged footer line: libnvmf_get_owner_from_libnvmf_get_owner_from_tid(9). yeah it says the name twice. she's quirky like that. slay, I guess πβ¨π«Ά
π¦ 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