---
name: "libnvmf_get_discovery_log-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_get_discovery_log-libnvme3"
---

# libnvmf\_get\_discovery\_log-libnvme3(2)

Fetch the NVMe-oF discovery log page

## NAME

libnvmf\_get\_discovery\_log - Fetch the NVMe-oF discovery log page

## SYNOPSIS

**int libnvmf\_get\_discovery\_log** **(struct libnvme\_ctrl \*ctrl** *,* **const struct libnvmf\_discovery\_args \*args** *,* **struct nvmf\_discovery\_log \*\*logp** *);*

## ARGUMENTS

- ctrl

  Discovery controller

- args

  Optional arguments (pass NULL for defaults)

- logp

  On success, set to the allocated log page (caller must **free**)

## DESCRIPTION

Issues the three-phase Get Log Page protocol against *ctrl*, validates generation-counter atomicity, and normalises each log entry.

## RETURN

0 on success, negative error code otherwise.
