1libnvme(9) API Manual libnvme(9)
2
3
4
6 struct nvme_self_test_log - Device Self-test (Log Identifier 06h)
7
9 struct nvme_self_test_log {
10 __u8 current_operation;
11 __u8 completion;
12 __u8 rsvd[2];
13 struct nvme_st_result result[NVME_LOG_ST_MAX_RESULTS];
14 };
15
16
18 current_operation
19 Current Device Self-Test Operation: indicates the status of
20 the current device self-test operation. If a device self-
21 test operation is in process (i.e., this field is set to
22 #NVME_ST_CURR_OP_SHORT or #NVME_ST_CURR_OP_EXTENDED), then
23 the controller shall not set this field to
24 #NVME_ST_CURR_OP_NOT_RUNNING until a new Self-test Result
25 Data Structure is created (i.e., if a device self-test op‐
26 eration completes or is aborted, then the controller shall
27 create a Self-test Result Data Structure prior to setting
28 this field to #NVME_ST_CURR_OP_NOT_RUNNING). See enum
29 nvme_st_curr_op.
30
31 completion Current Device Self-Test Completion: indicates the percent‐
32 age of the device self-test operation that is complete
33 (e.g., a value of 25 indicates that 25% of the device self-
34 test operation is complete and 75% remains to be tested).
35 If the current_operation field is cleared to
36 #NVME_ST_CURR_OP_NOT_RUNNING (indicating there is no device
37 self-test operation in progress), then this field is ig‐
38 nored.
39
40 rsvd Reserved
41
42 result Self-test Result Data Structures, see struct nvme_st_re‐
43 sult.
44
45
46
47April 2022 struct nvme_self_test_log libnvme(9)