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

# nvme\_status\_to\_string(2)

Returns string describing nvme return status.

## NAME

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

## SYNOPSIS

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