---
name: "libnvme_opcode_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_opcode_status_to_string-libnvme3"
---

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

Returns nvme opcode status string.

## NAME

libnvme\_opcode\_status\_to\_string - Returns nvme opcode status string.

## SYNOPSIS

**const char \* libnvme\_opcode\_status\_to\_string** **(int status** *,* **bool admin** *,* **\_\_u8 opcode** *);*

## ARGUMENTS

- status

  Return status from an nvme passthrough command

- admin

  Set to true if an admin command

- opcode

  Opcode from an nvme passthrough command

## RETURN

The nvme opcode status string if it is an nvme status field, or a standard errno string if status is \< 0.
