libnvme(9)
β¨ NAME β¨
okay so bestie, welcome to the libnvme(9) API Manual π
this page is all about struct nvme_st_result β the Self-test Result struct. Itβs giving βreceipts from your deviceβs self-test era,β no cap. π
π¦ 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 (seeenum nvme_status_resultandenum nvme_st_code). πsegβ Segment Number: Indicates 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. Seeenum nvme_st_valid_diag_info. β¨rsvdβ Reserved. literally just reserved, bestie π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. Bits2:0may 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 toenum 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. π
bestie, when a field says itβs βValid only whenβ¦β a specific vdi bit is set, that is your cue to actually check the bit. Do not just vibe-check it and assume. π
Signed, sealed, delivered with main character energy: October 2026 Β· struct nvme_st_result Β· libnvme(9) β bye bestie, slay your self-tests! πβ¨π
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms