DOKK / manpages / debian 12 / libnvme-dev / nvme_sanitize_sstat.2.en
libnvme(2) API Manual libnvme(2)

enum nvme_sanitize_sstat - Sanitize Status (SSTAT)

enum nvme_sanitize_sstat {
NVME_SANITIZE_SSTAT_STATUS_SHIFT ,
NVME_SANITIZE_SSTAT_STATUS_MASK ,
NVME_SANITIZE_SSTAT_STATUS_NEVER_SANITIZED ,
NVME_SANITIZE_SSTAT_STATUS_COMPLETE_SUCCESS ,
NVME_SANITIZE_SSTAT_STATUS_IN_PROGESS ,
NVME_SANITIZE_SSTAT_STATUS_COMPLETED_FAILED ,
NVME_SANITIZE_SSTAT_STATUS_ND_COMPLETE_SUCCESS ,
NVME_SANITIZE_SSTAT_COMPLETED_PASSES_SHIFT ,
NVME_SANITIZE_SSTAT_COMPLETED_PASSES_MASK ,
NVME_SANITIZE_SSTAT_GLOBAL_DATA_ERASED_SHIFT ,
NVME_SANITIZE_SSTAT_GLOBAL_DATA_ERASED_MASK ,
NVME_SANITIZE_SSTAT_GLOBAL_DATA_ERASED

};

Shift amount to get the status value of the most recent sanitize operation from the struct nvme_sanitize_log_page.sstat field.
Mask to get the status value of the most recent sanitize operation.
The NVM subsystem has never been sanitized.
The most recent sanitize operation completed successfully including any additional media modification.
A sanitize operation is currently in progress.
The most recent sanitize operation failed.
The most recent sanitize operation for which No-Deallocate After Sanitize was requested has completed successfully with deallocation of all user data.
Shift amount to get the number of completed passes if the most recent sanitize operation was an Overwrite. This value shall be cleared to 0h if the most recent sanitize operation was not an Overwrite.
Mask to get the number of completed passes.
Shift amount to get the Global Data Erased value from the struct nvme_sanitize_log_page.sstat field.
Mask to get the Global Data Erased value.
Global Data Erased: if set, then no namespace user data in the NVM subsystem has been written to and no Persistent Memory Region in the NVM subsystem has been enabled since being manufactured and the NVM subsystem has never been sanitized; or since the most recent successful sanitize operation.
enum nvme_sanitize_sstat January 2023