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

# nvme\_get\_log\_host\_discover(2)

Retrieve Host Discovery Log

## NAME

nvme\_get\_log\_host\_discover - Retrieve Host Discovery Log

## SYNOPSIS

**int nvme\_get\_log\_host\_discover** **(int fd** *,* **bool allhoste** *,* **bool rae** *,* **\_\_u32 len** *,* **struct nvme\_host\_discover\_log \*log** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- allhoste

  All host entries

- rae

  Retain asynchronous events

- len

  The allocated length of the log page

- log

  User address to store the log page

## RETURN

The nvme command status if a response was received (see *enum nvme\_status\_field*) or -1 with errno set otherwise
