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

# nvmf\_get\_discovery\_wargs(2)

Get the discovery log page with args

## NAME

nvmf\_get\_discovery\_wargs - Get the discovery log page with args

## SYNOPSIS

**struct nvmf\_discovery\_log \* nvmf\_get\_discovery\_wargs** **(struct nvme\_get\_discovery\_args \*args** *);*

## ARGUMENTS

- args

  Argument structure

## DESCRIPTION

This function is similar to **nvmf\_get\_discovery\_log**, but takes an extensible *args* parameter. *args* provides more options than **nvmf\_get\_discovery\_log**.

This function performs a get discovery log page (DLP) command and returns the DLP. The memory allocated for the returned DLP must be freed by the caller using **free**.

## RETURN

Pointer to the discovery log page (to be freed). NULL on failure and errno is set.
