Important: The information in this document is obsolete and should not be used for new development.
SCSIRemoveRefNumXref
You use theSCSIRemoveRefNumXreffunction to deregister a device driver with the XPT.
OSErr SCSIAction(SCSIDriverPB *scsiPB);
- scsiPB
- A pointer to a SCSI driver identification parameter block, which is described on page 4-35.
--> scsiPBLength UInt16 The size of the parameter block. --> scsiFunctionCode UInt8 The SCSIRemoveRefNumXreffunction selector code (0x87).<-- scsiResult OSErr The returned result code. --> scsiDevice DeviceIdent The device identification record. --> scsiCompletion CallbackProc Unused. Must be set to nil.DESCRIPTION
TheSCSIRemoveRefNumXreffunction removes a driver entry from the XPT's driver registration table. You specify the device identification record in thescsiDevicefield.Because this function is always executed synchronously, the
scsiCompletionfield must be set tonil.SPECIAL CONSIDERATIONS
TheSCSIRemoveRefNumXreffunction is executed synchronously, and may move memory; you should not call it at interrupt time.RESULT CODES
noErr 0 No error scsiQLinkInvalid -7881 The qLinkfield was not 0scsiNoSuchXref -7882 No driver has been cross-referenced with this device SEE ALSO
See "Loading and Initializing a Driver," beginning on page 4-11, for more information about how device drivers are registered with the XPT.