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 / SIM Support Functions


SCSIDeregisterBus

You can use the SCSIDeregisterBus function to deregister a bus that is no longer available.

OSErr SCSIDeregisterBus(SCSI_PB *scsiPB);
scsiPB
A pointer to a SCSI Manager parameter block.
-->scsiPBLengthUInt16The size of the parameter block.
<--scsiResultOSErrThe returned result code.
-->scsiDeviceDeviceIdentThe device identification record. Only the bus number is required.
-->scsiCompletionCallbackProcUnused. Must be set to nil.

DESCRIPTION
The SCSIDeregisterBus function attempts to remove the SIM specified by the scsiDevice.bus field of the parameter block. The XPT marks the bus number as invalid and any subsequent requests to it are rejected. This function is not normally used by the Macintosh Operating System and may not be supported in all implementations.

Because this function is always executed synchronously, the scsiCompletion field must be set to nil.

SPECIAL CONSIDERATIONS
The SCSIDeregisterBus function may move memory; you should not call it at interrupt time.

RESULT CODES
noErr0No error
scsiBusInvalid-7869The bus ID is invalid
scsiFunctionNotAvailable-7871The function is not supported by this SIM

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996