---
name: "libnvmf_generate_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_generate_hostid-libnvme3"
---

# libnvmf\_generate\_hostid-libnvme3(2)

Generate a machine specific host identifier

## NAME

libnvmf\_generate\_hostid - Generate a machine specific host identifier

## SYNOPSIS

**char \* libnvmf\_generate\_hostid** **(struct libnvme\_global\_ctx \*ctx** *);*

## ARGUMENTS

- ctx

  struct libnvme\_global\_ctx object

## RETURN

On success, an identifier string based on the machine identifier to be used as NVMe Host Identifier, or NULL on failure.
