---
name: "nvme_self_test_log"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_self_test_log"
---

# nvme\_self\_test\_log(2)

Device Self-test (Log Identifier 06h)

## NAME

struct nvme\_self\_test\_log - Device Self-test (Log Identifier 06h)

## SYNOPSIS

struct nvme\_self\_test\_log {\
     **\_\_u8 current\_operation;**\
     **\_\_u8 completion;**\
     **\_\_u8 rsvd\[2\];**\
     **struct nvme\_st\_result   result\[NVME\_LOG\_ST\_MAX\_RESULTS\];**\
 };\

## Members

- current\_operation

  Current Device Self-Test Operation: indicates the status of the current device self-test operation. If a device self-test operation is in process (i.e., this field is set to #NVME\_ST\_CURR\_OP\_SHORT or #NVME\_ST\_CURR\_OP\_EXTENDED), then the controller shall not set this field to #NVME\_ST\_CURR\_OP\_NOT\_RUNNING until a new Self-test Result Data Structure is created (i.e., if a device self-test operation completes or is aborted, then the controller shall create a Self-test Result Data Structure prior to setting this field to #NVME\_ST\_CURR\_OP\_NOT\_RUNNING). See *enum nvme\_st\_curr\_op*.

- completion

  Current Device Self-Test Completion: indicates the percentage of the device self-test operation that is complete (e.g., a value of 25 indicates that 25% of the device self-test operation is complete and 75% remains to be tested). If the *current\_operation* field is cleared to #NVME\_ST\_CURR\_OP\_NOT\_RUNNING (indicating there is no device self-test operation in progress), then this field is ignored.

- rsvd

  Reserved

- result

  Self-test Result Data Structures, see *struct nvme\_st\_result*.
