Bewerken

Delen via


STORAGE_ENDURANCE_INFO structure (ntddscsi.h)

A miniport uses the STORAGE_ENDURANCE_INFO structure to report a device's endurance information.

Syntax

typedef struct _STORAGE_ENDURANCE_INFO {
  ULONG  ValidFields;
  ULONG  GroupId;
  struct {
    ULONG Shared : 1;
    ULONG Reserved : 31;
  } Flags;
  ULONG  LifePercentage;
  UCHAR  BytesReadCount[16];
  UCHAR  ByteWriteCount[16];
} STORAGE_ENDURANCE_INFO, *PSTORAGE_ENDURANCE_INFO;

Members

ValidFields

Bitmask that indicates which of the remaining members contain valid data. Can be any of the combination of the following bits:

Bit Meaning
0 The GroupId member contains valid data.
1 The Flags member contains valid data.
2 The LifePercentage member contains valid data.
3 The BytesReadCount member contains valid data.
4 The ByteWriteCount member contains valid data.

GroupId

ID number that represents a group of resources.

Flags

Flags.Shared

Set TRUE if the endurance information is shared with multiple disks.

Flags.Reserved

Reserved; do not use.

LifePercentage

Percentage of used life. This value is typically between 0-100, where a larger number indicates more life has been used.

BytesReadCount[16]

Total bytes read from the device, specified in billions. For example, a value of 1 would mean 1 billion bytes read.

ByteWriteCount[16]

Total bytes written to the device, specified in billions. For example, a value of 1 would mean 1 billion bytes written.

Remarks

This structure is a member of STORAGE_ENDURANCE_DATA_DESCRIPTOR, which is the structure returned within the output buffer of an IOCTL_SCSI_MINIPORT request with a Signature of IOCTL_MINIPORT_SIGNATURE_ENDURANCE_INFO.

Requirements

Requirement Value
Header ntddscsi.h

See also

IOCTL_MINIPORT_SIGNATURE_ENDURANCE_INFO

IOCTL_SCSI_MINIPORT

STORAGE_ENDURANCE_DATA_DESCRIPTOR

[STORAGE_HW_ENDURANCE_INFO]/ntddstor/ns-ntddstor-storage_hw_endurance_info.md)