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

# nvme\_mi\_status\_to\_string(2)

return a string representation of the MI status.

## NAME

nvme\_mi\_status\_to\_string - return a string representation of the MI status.

## SYNOPSIS

**const char \* nvme\_mi\_status\_to\_string** **(int status** *);*

## ARGUMENTS

- status

  MI response status

## DESCRIPTION

Gives a string description of *status*, as per section 4.1.2 of the NVMe-MI spec. The status value should be of type NVME\_STATUS\_MI, and extracted from the return value using **nvme\_status\_get\_value**.

Returned string is const, and should not be **free**ed.

## RETURN

A string representing the status value
