libnvme_get_host-libnvme3(2)

libnvme_get_host-libnvme32

Returns a host object

Usage

int libnvme_get_host (struct libnvme_global_ctx *ctx , const char *hostnqn , const char *hostid , struct libnvme_host **h );

Arguments

ctx

struct libnvme_global_ctx object

hostnqn

Host NQN (optional)

hostid

Host ID (optional)

h

struct libnvme_host object to return

Overview

Returns a host object based on the hostnqn/hostid values or the default if hostnqn/hostid are NULL.

Return

0 on success, negative error code otherwise.

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.