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


SCSIRemoveRefNumXref

You use the SCSIRemoveRefNumXref function 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.
-->scsiPBLengthUInt16The size of the parameter block.
-->scsiFunctionCodeUInt8The SCSIRemoveRefNumXref function selector code (0x87).
<--scsiResultOSErrThe returned result code.
-->scsiDeviceDeviceIdentThe device identification record.
-->scsiCompletionCallbackProcUnused. Must be set to nil.

DESCRIPTION
The SCSIRemoveRefNumXref function removes a driver entry from the XPT's driver registration table. You specify the device identification record in the scsiDevice field.

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

SPECIAL CONSIDERATIONS
The SCSIRemoveRefNumXref function is executed synchronously, and may move memory; you should not call it at interrupt time.

RESULT CODES
noErr0No error
scsiQLinkInvalid-7881The qLink field was not 0
scsiNoSuchXref-7882No 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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996