Important: The information in this document is obsolete and should not be used for new development.
SCSIDeregisterBus
You can use theSCSIDeregisterBus
function to deregister a bus that is no longer available.
OSErr SCSIDeregisterBus(SCSI_PB *scsiPB);
- scsiPB
- A pointer to a SCSI Manager parameter block.
--> scsiPBLength UInt16 The size of the parameter block. <-- scsiResult OSErr The returned result code. --> scsiDevice DeviceIdent The device identification record. Only the bus number is required. --> scsiCompletion CallbackProc Unused. Must be set to nil
.DESCRIPTION
TheSCSIDeregisterBus
function attempts to remove the SIM specified by thescsiDevice.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 tonil
.SPECIAL CONSIDERATIONS
TheSCSIDeregisterBus
function may move memory; you should not call it at interrupt time.RESULT CODES
noErr 0 No error scsiBusInvalid -7869 The bus ID is invalid scsiFunctionNotAvailable -7871 The function is not supported by this SIM