Bewerken

Delen via


IoInitializeDpcRequest function (wdm.h)

The IoInitializeDpcRequest routine registers a driver-supplied DpcForIsr routine.

Syntax

void IoInitializeDpcRequest(
  [in] PDEVICE_OBJECT  DeviceObject,
  [in] PIO_DPC_ROUTINE DpcRoutine
);

Parameters

[in] DeviceObject

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

[in] DpcRoutine

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

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Desktop
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
IRQL Any level

See also

AddDevice

DEVICE_OBJECT

DpcForIsr

InterruptService

IoRequestDpc

KeInitializeDpc