Share via


InterruptMask (Compact 2013)

3/28/2014

This function masks hardware interrupts. This function can be called from kernel-mode drivers and user-mode drivers.

Syntax

VOID InterruptMask(
  DWORD idInt,
  BOOL fDisable
);

Parameters

  • idInt
    [in] Interrupt identifier to be associated with the interrupt service thread (IST).
  • fDisable
    [in] Flag to disable (mask) or enable (unmask) the interrupt.

Return Value

None.

Remarks

A device driver calls InterruptMask to temporarily mask or unmask an interrupt so that the device driver can safely access the hardware without being interrupted by the same interrupt.

Requirements

Header

pkfuncs.h

Library

OEMMain.lib or OEMMain_StaticKITL.lib

See Also

Reference

Kernel Functions

Other Resources

User Mode Driver Framework
OEMInterruptEnable
OEMInterruptDisable