|国家预印本平台
首页|WDM驱动程序开发中数据访问的冲突与保护分析

WDM驱动程序开发中数据访问的冲突与保护分析

nalysis of Conflict and Protection of Data Access in

中文摘要英文摘要

在WDM驱动程序开发中,数据的安全至关重要,本文阐述了在WDM驱动程序开发中数据访问冲突和保护的问题。在单处理器系统中,数据访问冲突主要是由不同中断级别的例程相互抢先而产生的,因此通过提升中断级别(IRQL)可以解决数据访问冲突的问题从而实现数据保护;而在多处理器系统中,不仅存在不同中断级别的例程相互抢先,更重要的是不同处理器相互抢先而产生的数据访问冲突,因此必须通过自旋锁(Spin Lock)来解决此问题。本文介绍了中断级别(IRQL)、自旋锁等概念,以及使用它们时的注意事项,并介绍了DDK中提供的几个锁函数,通过一个实际例子说明了锁函数的用法。

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.

佟为明、刘勇、许沛云

计算技术、计算机技术

单处理器多处理器驱动程序中断级别自旋锁

single-processormulti-processordriverIRQLSpin Lock

佟为明,刘勇,许沛云.WDM驱动程序开发中数据访问的冲突与保护分析[EB/OL].(2010-04-23)[2025-08-02].http://www.paper.edu.cn/releasepaper/content/201004-886.点此复制

评论