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

# nvme\_mi\_admin\_get\_log(2)

Retrieve log page data from controller

## NAME

nvme\_mi\_admin\_get\_log - Retrieve log page data from controller

## SYNOPSIS

**int nvme\_mi\_admin\_get\_log** **(nvme\_mi\_ctrl\_t ctrl** *,* **struct nvme\_get\_log\_args \*args** *);*

## ARGUMENTS

- ctrl

  Controller to query

- args

  Get Log Page command arguments

## DESCRIPTION

Performs a Get Log Page Admin command as specified by *args*. Response data is stored in *args-\>data*, which should be a buffer of *args-\>data\_len* bytes. Resulting data length is stored in *args-\>data\_len* on successful command completion.

This request may be implemented as multiple log page commands, in order to fit within MI message-size limits.

See: *struct nvme\_get\_log\_args*

## RETURN

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