Issues a GET_PERFORMANCE command to the device as defined in MMC-2.
- macOS 10.1+
- Mac Catalyst 13.0+
Pointer to an MMCDeviceInterface for one IOService.
The TOLERANCE field as described for the GET_PERFORMANCE command in MMC-2.
The WRITE bit as described in MMC-2 for the GET_PERFORMANCE command.
The EXCEPT field as described in MMC-2 for the GET_PERFORMANCE command.
The STARTING_LBA field as described in MMC-2 for the GET_PERFORMANCE command.
The MAXIMUM_NUMBER_OF_DESCRIPTORS field as described in MMC-2 for the GET_PERFORMANCE command.
Pointer to the buffer where the mode sense data should be placed.
Size of the buffer.
Pointer to a SCSITaskStatus to get the status of the SCSITask which was executed. Valid SCSITaskStatus values are defined in SCSITask.h
Pointer to a buffer the size of the SCSI_Sense_Data struct found in SCSICmds_REQUEST_SENSE_Defs.h. The sense data is only valid if the SCSITaskStatus is kSCSITaskStatus_CHECK_CONDITION.
Returns kIOReturnSuccess if successful, kIOReturnNoDevice if there is no connection to an IOService, kIOReturnNoMemory if a SCSITask couldn't be created, or kIOReturnExclusiveAccess if the device is already opened for exclusive access by another client.
Once an MMCDeviceInterface is opened, the client may send this command to get performance information from the device.