---
name: "nvme_get_log_ana"
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_ana"
---

# nvme\_get\_log\_ana(2)

Retrieve Asymmetric Namespace Access log page

## NAME

nvme\_get\_log\_ana - Retrieve Asymmetric Namespace Access log page

## SYNOPSIS

**int nvme\_get\_log\_ana** **(int fd** *,* **enum nvme\_log\_ana\_lsp lsp** *,* **bool rae** *,* **\_\_u64 offset** *,* **\_\_u32 len** *,* **void \*log** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- lsp

  Log specific, see *enum nvme\_get\_log\_ana\_lsp*

- rae

  Retain asynchronous events

- offset

  Offset to the start of the log page

- len

  The allocated length of the log page

- log

  User address to store the ana log

## DESCRIPTION

This log consists of a header describing the log and descriptors containing the asymmetric namespace access information for ANA Groups that contain namespaces that are attached to the controller processing the command.

See *struct nvme\_ana\_log* for the definition of the returned structure.

## RETURN

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