Contents

SendSCSICommand

Pure virtual method subclasses must implement in order to send SCSITasks on the wire.

Declaration

virtual bool SendSCSICommand (
 SCSITaskIdentifierrequest, 
 SCSIServiceResponse *serviceResponse, 
 SCSITaskStatus *taskStatus ) = 0;

Parameters

  • request:

    A valid SCSITaskIdentifier representing the command to send on the wire.

  • serviceResponse:

    Pointer to a SCSIServiceResponse value returned to the caller.

  • taskStatus:

    Pointer to a SCSITaskStatus value returned to the caller.

Return Value

False if no more commands can be processed at this time, otherwise true.

Overview

Send a SCSI Command to the device. If the command was sent to the device and is pending completion, the subclass should return true and return back the kSCSIServiceResponse_Request_In_Process response. If the command completes immediately with an error, the subclass will return true and return back the appropriate status. If the subclass is currently processing all the commands it can, the subclass will return false and the command will be resent next time CommandCompleted is called.

See Also

Miscellaneous