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

nvme_mi_admin_get_log_device_self_test - Retrieve the device self test log

int nvme_mi_admin_get_log_device_self_test (nvme_mi_ctrl_t ctrl , struct nvme_self_test_log *log );

Controller to query
Userspace address of the log payload

The log page indicates the status of an in progress self test and the percent complete of that operation, and the results of the previous 20 self-test operations.

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

nvme_mi_admin_get_log_device_self_test January 2023