Expand Minimize

KeInitializeDeviceQueue routine

The KeInitializeDeviceQueue routine initializes a device queue object to a not-busy state.

Syntax


VOID KeInitializeDeviceQueue(
  _Out_ PKDEVICE_QUEUE DeviceQueue
);

Parameters

DeviceQueue [out]

Pointer to a device queue object for which the caller provides the storage.

Return value

None

Remarks

KeInitializeDeviceQueue initializes the specified device queue and sets its state to not-busy.

A driver should call KeInitializeDeviceQueue from its AddDevice routine after creating the device object for the associated device. Storage for the device queue object must be resident: in the device extension of a driver-created device object, in the controller extension of a driver-created controller object, or in nonpaged pool allocated by the caller.

Requirements

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

IrqlKeDispatchLte, HwStorPortProhibitedDDIs

See also

KeInsertByKeyDeviceQueue
KeInsertDeviceQueue
KeRemoveDeviceQueue
KeRemoveEntryDeviceQueue

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft