libnvme_get_host(9)
π NAME π
libnvme_get_host β Returns a host object β¨
okay so bestie, welcome to the libnvme_get_host(9) page from the libnvme API manual π«Ά this one is lowkey short but highkey useful: it's all about grabbing a host object. periodt π
πΈ SYNOPSIS πΈ
int libnvme_get_host (struct libnvme_global_ctx *ctx , const char *hostnqn , const char *hostid , struct libnvme_host **h );
π ARGUMENTS π
ctxβ thestruct libnvme_global_ctxobject, aka the main-character context bestie πhostnqnβ the Host NQN, and it's optional πhostidβ the Host ID, also optional β¨hβ thestruct libnvme_hostobject to return, so this is where the host object comes back out π¦
π¦ DESCRIPTION π¦
so the way this works: it returns a host object based on the hostnqn/hostid values, or the default if hostnqn/hostid are NULL π
like, if you pass those values, it's giving "use these", and if they're NULL, it's giving "default vibes" π
no cap.
π RETURN π
0on success π- negative error code otherwise π
mwah π this iconic lil page is from the libnvme API manual, dated October 2026, and it's literally libnvme_get_host(9). bye bestie, go get that host object π«Άβ¨
π¦ 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