IRQL是Interrupt Request Level的缩写,即中断请求级别。是Windows操作系统使用的处理器中断级别。
KeRaiseIrql和KeLowerIrql
#define POOL_DECLARE_IRQL KIRQL irql; #define POOL_LOCK(dummylockname) \ KeRaiseIrql(APC_LEVEL, &irql); \ ExAcquireResourceExclusiveLite(pool->lock, TRUE); #define POOL_UNLOCK(dummylockname) \ ExReleaseResourceLite(pool->lock); \ KeLowerIrql(irql);