libnvme_get_host(9)

NAME
libnvme_get_host - Returns a host object

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

ARGUMENTS

ctx struct libnvme_global_ctx object

hostnqn
    Host NQN (optional)

hostid
    Host ID (optional)

h   libnvme_host_t object to return

DESCRIPTION
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.