IoInitializeDpcRequest routine

The IoInitializeDpcRequest routine registers a driver-supplied DpcForIsr routine.

Syntax


VOID IoInitializeDpcRequest(
  _In_ PDEVICE_OBJECT  DeviceObject,
  _In_ PIO_DPC_ROUTINE DpcRoutine
);

Parameters

DeviceObject [in]

Supplies a pointer to the DEVICE_OBJECT structure representing the physical device that generates interrupts.

DpcRoutine [in]

Supplies a pointer to the driver-supplied DpcForIsr routine.

Return value

None

Remarks

IoInitializeDpcRequest associates a driver-supplied DpcForIsr routine with a given device object. The driver's InterruptService routine (ISR) can call IoRequestDpc to queue the DpcForIsr routine. The DpcForIsr routine completes interrupt-driven I/O operations at a lower IRQL than that of the ISR.

PnP drivers call IoInitializeDpcRequest from the AddDevice routine.

For more information, see DPC Objects and DPCs.

Requirements

Target platform

Version

Available starting with Windows 2000.

Header

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

IRQL

Any level

See also

AddDevice
DpcForIsr
DEVICE_OBJECT
InterruptService
IoRequestDpc
KeInitializeDpc

 

 

Send comments about this topic to Microsoft

Show: