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

# nvmf\_hostnqn\_generate\_from\_hostid(2)

Generate a host nqn from host identifier

## NAME

nvmf\_hostnqn\_generate\_from\_hostid - Generate a host nqn from host identifier

## SYNOPSIS

**char \* nvmf\_hostnqn\_generate\_from\_hostid** **(char \*hostid** *);*

## ARGUMENTS

- hostid

  Host identifier

## DESCRIPTION

If *hostid* is NULL, the function generates it based on the machine identifier.

## RETURN

On success, an NVMe Qualified Name for host identification. This name is based on the given host identifier. On failure, NULL.
