AtaPortAllocateQueueTag - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// irb.h

UCHAR AtaPortAllocateQueueTag(
       PVOID DeviceExtension,
  [in] UCHAR TargetId,
  [in] UCHAR Lun
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-irb-ataportallocatequeuetag)

AtaPortAllocateQueueTag function

Description

The AtaPortAllocateQueueTag routine returns a queue tag for the specified device.

Note The ATA port driver and ATA miniport driver models may be altered or unavailable in the future. Instead, we recommend using the Storport driver and Storport miniport driver models.

Parameters

DeviceExtension

A pointer to the channel extension.

TargetId [in]

Specifies the target identifier of the device.

Lun [in]

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.

See also

AtaPortInitializeQueueTag

AtaPortReleaseQueueTag