DOKK / manpages / debian 12 / libnvme-dev / nvme_get_log_sanitize.2.en
nvme_get_log_sanitize(2) libnvme API manual nvme_get_log_sanitize(2)

nvme_get_log_sanitize - Retrieve Sanitize Status

int nvme_get_log_sanitize (int fd , bool rae , struct nvme_sanitize_log_page *log );

File descriptor of nvme device
Retain asynchronous events
User address to store the sanitize log

The Sanitize Status log page reports sanitize operation time estimates and information about the most recent sanitize operation.

The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.

nvme_get_log_sanitize January 2023