libnvmf_read_hostnqn-libnvme3(2)

libnvmf_read_hostnqn-libnvme32

Get the configured host nvm qualified name

Usage

char * libnvmf_read_hostnqn (struct libnvme_global_ctx *ctx );

Arguments

ctx

struct libnvme_global_ctx object

Overview

Return ctx's hostnqn default if one is set, otherwise read the name from $SYSCONFDIR/nvme/hostnqn. $SYSCONFDIR is usually /etc. An empty ctx default suppresses the file lookup.

This is not the identity a connect uses. See libnvmf_host_get_ids for the full resolution order.

Return

The host nqn, or NULL if unsuccessful. If found, the caller is responsible to free the string.

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