WDM驱动程序开发中数据访问的冲突与保护分析
首发时间:2010-04-23
摘要:在WDM驱动程序开发中,数据的安全至关重要,本文阐述了在WDM驱动程序开发中数据访问冲突和保护的问题。在单处理器系统中,数据访问冲突主要是由不同中断级别的例程相互抢先而产生的,因此通过提升中断级别(IRQL)可以解决数据访问冲突的问题从而实现数据保护;而在多处理器系统中,不仅存在不同中断级别的例程相互抢先,更重要的是不同处理器相互抢先而产生的数据访问冲突,因此必须通过自旋锁(Spin Lock)来解决此问题。本文介绍了中断级别(IRQL)、自旋锁等概念,以及使用它们时的注意事项,并介绍了DDK中提供的几个锁函数,通过一个实际例子说明了锁函数的用法。
For information in English, please click here
Analysis of Conflict and Protection of Data Access in
Abstract:In the WDM driver development, data security is essential. This paper discusses the issue of conflict and protection of data access in WDM development . In the single-processor systems, the data access conflict generates because routines of different IRQL compete with each other, so we may solve the problem by enhancing the IRQL; But in the Multi-processor systems, the reason mentioned above is not the only. The more important reason is that different processors compete with each other. So we must solve the problem by Spin lock. This paper explains the conceptions of IRQL and Spin Lock, and introduces some matters needing attention in using IRQL or Spin Lock. In addition, we introduce several lock functions that supplied by DDK and explain their usages by a development example.
Keywords: single-processor multi-processor driver IRQL Spin Lock
基金:
论文图表:
引用
No.4229952642012720****
同行评议
共计0人参与
勘误表
WDM驱动程序开发中数据访问的冲突与保护分析
评论
全部评论