---
name: "libnvme_mi_status_to_string-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_mi_status_to_string-libnvme3"
---

# libnvme\_mi\_status\_to\_string-libnvme3(2)

return a string representation of the MI status.

## NAME

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

## SYNOPSIS

**const char \* libnvme\_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
