---
name: "nvme_mi_admin_get_log_device_self_test"
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_device_self_test"
---

# nvme\_mi\_admin\_get\_log\_device\_self\_test(2)

Retrieve the device self test log

## NAME

nvme\_mi\_admin\_get\_log\_device\_self\_test - Retrieve the device self test log

## SYNOPSIS

**int nvme\_mi\_admin\_get\_log\_device\_self\_test** **(nvme\_mi\_ctrl\_t ctrl** *,* **struct nvme\_self\_test\_log \*log** *);*

## ARGUMENTS

- ctrl

  Controller to query

- log

  Userspace address of the log payload

## DESCRIPTION

The log page indicates the status of an in progress self test and the percent complete of that operation, and the results of the previous 20 self-test operations.

## RETURN

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