---
name: "libnvme_get_ana_log_len-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/libnvme_get_ana_log_len-libnvme3"
---

# libnvme\_get\_ana\_log\_len-libnvme3(2)

Retrieve size of the current ANA log

## NAME

libnvme\_get\_ana\_log\_len - Retrieve size of the current ANA log

## SYNOPSIS

**int libnvme\_get\_ana\_log\_len** **(struct libnvme\_transport\_handle \*hdl** *,* **size\_t \*analen** *);*

## ARGUMENTS

- hdl

  Transport handle

- analen

  Pointer to where the length will be set on success

## RETURN

0 on success, the nvme command status if a response was received (see *enum nvme\_status\_field*) or a negative error otherwise.
