Previous Next

IoDisconnectInterrupt

The IoDisconnectInterrupt routine releases a device driver’s set of interrupt object(s) when the device is paused or removed, or when the driver is being unloaded.

VOID 
  IoDisconnectInterrupt(
    IN PKINTERRUPT  InterruptObject
    );

Parameters

InterruptObject
Specifies the pointer returned by IoConnectInterrupt.

Return Value

None

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments

A driver should disable interrupts from its device before it calls IoDisconnectInterrupt.

If the driver stored the pointer to its interrupt object(s) in the device extension of its device object or in the controller extension of its controller object, it must call IoDisconnectInterrupt before it calls IoDeleteDevice or IoDeleteController.

Callers of IoDisconnectInterrupt must be running at IRQL = PASSIVE_LEVEL.

See Also

IoConnectInterrupt, IoDeleteController, IoDeleteDevice