AtaPortAllocateQueueTag function (irb.h)
The AtaPortAllocateQueueTag routine returns a queue tag for the specified device.
Syntax
UCHAR AtaPortAllocateQueueTag(
PVOID DeviceExtension,
[in] UCHAR TargetId,
[in] UCHAR Lun
);
Parameters
DeviceExtension
A pointer to the channel extension.
[in] TargetId
Specifies the target identifier of the device.
[in] Lun
Specifies the logical unit number (LUN) of the device.
Return value
AtaPortAllocateQueueTag returns a valid queue tag if one can be allocated. A value of 0 is returned if a queue tag could not be allocated.
Remarks
The AtaPortAllocateQueueTag routine allocates either a per device queue tag or a per channel queue tag. To generate a per channel queue tag, the miniport driver should set the TargetId and Lun parameters to IDE_UNTAGGED.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | irb.h (include Ata.h, Irb.h) |