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

# nvme\_st\_code(2)

Self-test Code value

## NAME

enum nvme\_st\_code - Self-test Code value

## SYNOPSIS

enum nvme\_st\_code {\
     **NVME\_ST\_CODE\_RESERVED** , \
\
     **NVME\_ST\_CODE\_SHORT** , \
\
     **NVME\_ST\_CODE\_EXTENDED** , \
\
     **NVME\_ST\_CODE\_HOST\_INIT** , \
\
     **NVME\_ST\_CODE\_VS** , \
\
     **NVME\_ST\_CODE\_ABORT** , \
\
     **NVME\_ST\_CODE\_SHIFT**

};

## Constants

- NVME\_ST\_CODE\_RESERVED

  Reserved.

- NVME\_ST\_CODE\_SHORT

  Short device self-test operation.

- NVME\_ST\_CODE\_EXTENDED

  Extended device self-test operation.

- NVME\_ST\_CODE\_HOST\_INIT

  Host-Initiated Refresh operation.

- NVME\_ST\_CODE\_VS

  Vendor specific.

- NVME\_ST\_CODE\_ABORT

  Abort device self-test operation.

- NVME\_ST\_CODE\_SHIFT

  Shift amount to get the code value from the *struct nvme\_st\_result*.dsts field.
