libnvme(9) API Manual libnvme(9)

# [NAME](#NAME)

enum nvme\_status\_result - Result of the device self-test operation

# [SYNOPSIS](#SYNOPSIS)

enum nvme\_status\_result {  
**NVME\_ST\_RESULT\_NO\_ERR** ,  
**NVME\_ST\_RESULT\_ABORTED** ,  
**NVME\_ST\_RESULT\_CLR** ,  
**NVME\_ST\_RESULT\_NS\_REMOVED** ,  
**NVME\_ST\_RESULT\_ABORTED\_FORMAT** ,  
**NVME\_ST\_RESULT\_FATAL\_ERR** ,  
**NVME\_ST\_RESULT\_UNKNOWN\_SEG\_FAIL** ,  
**NVME\_ST\_RESULT\_KNOWN\_SEG\_FAIL** ,  
**NVME\_ST\_RESULT\_ABORTED\_UNKNOWN** ,  
**NVME\_ST\_RESULT\_ABORTED\_SANITIZE** ,  
**NVME\_ST\_RESULT\_NOT\_USED** ,  
**NVME\_ST\_RESULT\_SHIFT** ,  
**NVME\_ST\_RESULT\_MASK**

};

# [Constants](#Constants)

[NVME\_ST\_RESULT\_NO\_ERR](#NVME_ST_RESULT_NO_ERR)

Operation completed without error.

[NVME\_ST\_RESULT\_ABORTED](#NVME_ST_RESULT_ABORTED)

Operation was aborted by a Device Self-test command.

[NVME\_ST\_RESULT\_CLR](#NVME_ST_RESULT_CLR)

Operation was aborted by a Controller Level Reset.

[NVME\_ST\_RESULT\_NS\_REMOVED](#NVME_ST_RESULT_NS_REMOVED)

Operation was aborted due to a removal of a namespace from the namespace inventory.

[NVME\_ST\_RESULT\_ABORTED\_FORMAT](#NVME_ST_RESULT_ABORTED_FORMAT)

Operation was aborted due to the processing of a Format NVM command.

[NVME\_ST\_RESULT\_FATAL\_ERR](#NVME_ST_RESULT_FATAL_ERR)

A fatal error or unknown test error occurred while the controller was executing the device self-test operation and the operation did not complete.

[NVME\_ST\_RESULT\_UNKNOWN\_SEG\_FAIL](#NVME_ST_RESULT_UNKNOWN_SEG_FAIL)

Operation completed with a segment that failed and the segment that failed is not known.

[NVME\_ST\_RESULT\_KNOWN\_SEG\_FAIL](#NVME_ST_RESULT_KNOWN_SEG_FAIL)

Operation completed with one or more failed segments and the first segment that failed is indicated in the Segment Number field.

[NVME\_ST\_RESULT\_ABORTED\_UNKNOWN](#NVME_ST_RESULT_ABORTED_UNKNOWN)

Operation was aborted for unknown reason.

[NVME\_ST\_RESULT\_ABORTED\_SANITIZE](#NVME_ST_RESULT_ABORTED_SANITIZE)

Operation was aborted due to a sanitize operation.

[NVME\_ST\_RESULT\_NOT\_USED](#NVME_ST_RESULT_NOT_USED)

Entry not used (does not contain a test result).

[NVME\_ST\_RESULT\_SHIFT](#NVME_ST_RESULT_SHIFT)

Device self-test result shift

[NVME\_ST\_RESULT\_MASK](#NVME_ST_RESULT_MASK)

Mask to get the status result value from the *struct nvme\_st\_result*.dsts field.

enum nvme\_status\_result October 2026

---

Document: nvme_status_result-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
