---
name: "libnvme_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_status_to_string-libnvme3"
---

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

Returns string describing nvme return status.

## NAME

libnvme\_status\_to\_string - Returns string describing nvme return status.

## SYNOPSIS

**const char \* libnvme\_status\_to\_string** **(int status** *,* **bool fabrics** *);*

## ARGUMENTS

- status

  Return status from an nvme passthrough command

- fabrics

  Set to true if *status* is to a fabrics target.

## RETURN

String representation of the nvme status if it is an nvme status field, or a standard errno string if status is \< 0.
