libnvmf\_config\_get\_hostid(9) libnvme API manual libnvmf\_config\_get\_hostid(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[config](#config)

the resolved configuration

# [DESCRIPTION](#DESCRIPTION)

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

# [RETURN](#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).

libnvmf\_config\_get\_hostid October 2026

---

Document: libnvmf_config_get_hostid-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
