---
name: "nvmf_hostid_from_file"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvmf_hostid_from_file"
---

# nvmf\_hostid\_from\_file(2)

Reads the host identifier from the config default location

## NAME

nvmf\_hostid\_from\_file - Reads the host identifier from the config default location

## SYNOPSIS

**char \* nvmf\_hostid\_from\_file**

## ARGUMENTS

## DESCRIPTION

Retrieve the host idenditifer from the config file located in $SYSCONFDIR/nvme/. $SYSCONFDIR is usually /etc.

## RETURN

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