---
name: "nvme_mi_admin_get_log_fw_slot"
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_fw_slot"
---

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

Retrieves the controller firmware log

## NAME

nvme\_mi\_admin\_get\_log\_fw\_slot - Retrieves the controller firmware log

## SYNOPSIS

**int nvme\_mi\_admin\_get\_log\_fw\_slot** **(nvme\_mi\_ctrl\_t ctrl** *,* **bool rae** *,* **struct nvme\_firmware\_slot \*fw\_log** *);*

## ARGUMENTS

- ctrl

  Controller to query

- rae

  Retain asynchronous events

- fw\_log

  User address to store the log page

## DESCRIPTION

This log page describes the firmware revision stored in each firmware slot supported. The firmware revision is indicated as an ASCII string. The log page also indicates the active slot number.

## RETURN

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