Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 4 - SCSI Manager 4.3 / SCSI Manager 4.3 Reference
SCSI Manager 4.3 Functions / Client Functions


SCSIReleaseQ

You use the SCSIReleaseQ function to release a frozen queue for a LUN.

OSErr SCSIAction(SCSI_PB *scsiPB);
scsiPB
A pointer to a SCSI Manager parameter block.
-->scsiPBLengthUInt16The size of the parameter block.
-->scsiFunctionCodeUInt8The SCSIReleaseQ function selector code (0x04).
<--scsiResultOSErrThe returned result code.
-->scsiDeviceDeviceIdentThe device identification record.
-->scsiCompletionCallbackProcUnused. Must be set to nil.

DESCRIPTION
The SCSIReleaseQ function releases a frozen I/O queue for the logical unit number specified in the scsiDevice field. If an I/O request returns with the scsiSIMQFrozen flag set in the scsiResultFlags field, you must call this function to restore normal operation.

Queue freezing provides the opportunity to insert error-handling requests at the beginning of the queue using the scsiSIMQHead flag. You then release the queue using this function. Subsequent errors will continue to freeze the queue, allowing you to step through the queue one request at a time without aborting any other pending requests.

Because this function is always executed synchronously, the scsiCompletion field must be set to nil. Unlike other synchronous functions, however, you can call SCSIReleaseQ from a completion routine.

RESULT CODES
noErr0No error
scsiIDInvalid-7866The initiator ID is invalid
scsiLUNInvalid-7867The logical unit number is invalid
scsiTIDInvalid-7868The target ID is invalid
scsiBusInvalid-7869The bus ID is invalid
scsiRequestInvalid-7870The parameter block request is invalid
scsiPBLengthError-7872The parameter block is too small for this SIM
scsiQLinkInvalid-7881The qLink field was not 0
SEE ALSO
See "Error Recovery Techniques" on page 4-10 for more information about queue freezing.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996