---
name: "libnvmf_config_get_hostid-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvmf_config_get_hostid-libnvme3"
---

# libnvmf\_config\_get\_hostid-libnvme3(2)

the top-level \[Host\] host ID.

## NAME

libnvmf\_config\_get\_hostid - the top-level \[Host\] host ID.

## SYNOPSIS

**const char \* libnvmf\_config\_get\_hostid** **(const struct libnvmf\_config \*config** *);*

## ARGUMENTS

- config

  the resolved configuration

## DESCRIPTION

See **libnvmf\_config\_get\_hostnqn**.

## RETURN

borrowed string, valid while *config* is alive, or NULL when the top-level file names no host ID (the caller falls back to the system identity in /etc/nvme/hostid).
