Previous Next

NdisMDeregisterInterrupt

NdisMDeregisterMiniport releases resources previously allocated with NdisMRegisterInterrupt.

VOID 
  NdisMDeregisterInterrupt(
    IN PNDIS_MINIPORT_INTERRUPT  Interrupt
    );

Parameters

Interrupt
Pointer to an interrupt object previously registered with NdisMRegisterInterrupt.

Headers

Declared in Ndis.h. Include Ndis.h.

Comments

NdisMDeregisterInterrupt releases the association between the initialized interrupt object at Interrupt and the caller’s MiniportISR function. After NdisMDeregisterInterrupt returns, NDIS will not call the miniport driver’s MiniportISR function or MiniportHandleInterrupt function.

A miniport driver can call NdisMDeregisterInterrupt from its MiniportInitialize or MiniportHalt function only if MiniportInitialize previously made a successful call to NdisMRegisterInterrupt.

The miniport driver should disable its NIC from generating interrupts before it calls NdisMDeregisterInterrupt. After NdisMDeregisterInterrupt returns control, the miniport driver cannot call NdisMSynchronizeWithInterrupt.

Callers of NdisMDeregisterInterrupt run at IRQL = PASSIVE_LEVEL.

See Also

MiniportDisableInterrupt, MiniportHalt, MiniportHandleInterrupt, MiniportInitialize, MiniportISR, NdisMRegisterInterrupt, NdisMSynchronizeWithInterrupt