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

# nvme\_st\_result(2)

Self-test Result

## NAME

struct nvme\_st\_result - Self-test Result

## SYNOPSIS

struct nvme\_st\_result {\
     **\_\_u8 dsts;**\
     **\_\_u8 seg;**\
     **\_\_u8 vdi;**\
     **\_\_u8 rsvd;**\
     **\_\_le64 poh;**\
     **\_\_le32 nsid;**\
     **\_\_le64 flba;**\
     **\_\_u8 sct;**\
     **\_\_u8 sc;**\
     **\_\_u8 vs\[2\];**\
 };\

## Members

- dsts

  Device Self-test Status: Indicates the device self-test code and the status of the operation (see *enum nvme\_status\_result* and *enum nvme\_st\_code*).

- seg

  Segment Number: Iindicates the segment number where the first self-test failure occurred. If Device Self-test Status (*dsts*) is not set to #NVME\_ST\_RESULT\_KNOWN\_SEG\_FAIL, then this field should be ignored.

- vdi

  Valid Diagnostic Information: Indicates the diagnostic failure information that is reported. See *enum nvme\_st\_valid\_diag\_info*.

- rsvd

  Reserved

- poh

  Power On Hours (POH): Indicates the number of power-on hours at the time the device self-test operation was completed or aborted. This does not include time that the controller was powered and in a low power state condition.

- nsid

  Namespace Identifier (NSID): Indicates the namespace that the Failing LBA occurred on. Valid only when the NSID Valid bit (#NVME\_ST\_VALID\_DIAG\_INFO\_NSID) is set in the Valid Diagnostic Information (*vdi*) field.

- flba

  Failing LBA: indicates the LBA of the logical block that caused the test to fail. If the device encountered more than one failed logical block during the test, then this field only indicates one of those failed logical blocks. Valid only when the NSID Valid bit (#NVME\_ST\_VALID\_DIAG\_INFO\_FLBA) is set in the Valid Diagnostic Information (*vdi*) field.

- sct

  Status Code Type: This field may contain additional information related to errors or conditions. Bits 2:0 may contain additional information relating to errors or conditions that occurred during the device self-test operation represented in the same format used in the Status Code Type field of the completion queue entry (refer to *enum nvme\_status\_field*). Valid only when the NSID Valid bit (#NVME\_ST\_VALID\_DIAG\_INFO\_SCT) is set in the Valid Diagnostic Information (*vdi*) field.

- sc

  Status Code: This field may contain additional information relating to errors or conditions that occurred during the device self-test operation represented in the same format used in the Status Code field of the completion queue entry. Valid only when the SCT Valid bit (#NVME\_ST\_VALID\_DIAG\_INFO\_SC) is set in the Valid Diagnostic Information (*vdi*) field.

- vs

  Vendor Specific.
