MSDN Home > MSDN Library > Storage Devices > Reference > I/O Requests for Mass Storage Drivers > Disk I/O Control Codes |
SMART_RCV_DRIVE_DATAOperationReturns the ATA-2 identify data, the Self-Monitoring Analysis and Reporting Technology (SMART) thresholds, or the SMART attributes for the device. This IOCTL must be handled by drivers that support SMART. InputThe buffer at Irp->AssociatedIrp.SystemBuffer contains a SENDCMDINPARAMS structure that describes the request being sent to the device. The irDriveRegs.bCommandReg member specifies ID_CMD when identify data is requested and SMART_CMD when SMART data is requested. If SMART data is requested, the irDriveRegs.bFeaturesReg member specifies either READ_ATTRIBUTES or READ_THRESHOLDS. Parameters.DeviceIoControl.InputBufferLength specifies the size, in bytes, of the input buffer, which must be >= (sizeof(SENDCMDINPARAMS) 1). Parameters.DeviceIoControl.OutputBufferLength specifies the size, in bytes, of the output buffer, which must be >= (sizeof(SENDCMDOUTPARAMS) 1 + 512). OutputThe driver returns the SENDCMDOUTPARAMS structure and a 512-byte buffer of drive data to the buffer at Irp->AssociatedIrp.SystemBuffer. I/O Status BlockThe driver sets the Information field to (sizeof(SENDCMDOUTPARAMS) 1 + 512) when it sets the Status field to STATUS_SUCCESS. Otherwise, the driver sets the Information field to zero and the Status field to possibly STATUS_INVALID_PARAMETER or STATUS_INSUFFICIENT_RESOURCES. HeadersDefined in ntdddisk.h. Include ntdddisk.h. See Also |
Contact Us | E-Mail this Page | MSDN Flash Newsletter |
© 2003 Microsoft Corporation. All rights reserved. Terms of Use Privacy Statement Accessibility |