Contents

FindTaskForAddress

Find a task for a given Task Address, if one exists.

Declaration

SCSIParallelTaskIdentifier FindTaskForAddress ( 
 SCSIDeviceIdentifiertheT, 
 SCSILogicalUnitNumbertheL, 
 SCSITaggedTaskIdentifiertheQ );

Parameters

  • theT:

    is the Target component of the I_T_L or I_T_L_Q nexus.

  • theL:

    is the Logical Unit component of the I_T_L or I_T_L_Q nexus.

  • theQ:

    is the Queue Tag component of the I_T_L_Q nexus. If this is an I_T_L nexus, then the kSCSIUntaggedTaskIdentifier constant should be used for theQ.

Return Value

returns a valid SCSIParallelTaskIdentifier or NULL if none found.

Overview

If a valid Tagged Task Identifier is specified, this method will return the task specified by the Tagged Task Address if one is found, or else NULL will be returned. If zero is used as the Tagged Task Identifier, then this routine will search for an outstanding task based on the Untagged Task Address and return the task or else, if one is not found, return NULL.

See Also

Miscellaneous