2011年4月19日
摘要: 用有限的几句话就舒舒服服的建立起对驱动对象和设备对象的概念是不可能的。刚开始是一片模糊,了解的多了,慢慢就清楚。下面的内容会使你对他们了解的清楚些。为了后面的叙述方便,首先列出驱动对象和设备对象的结构。驱动对象结构 DRIVER_OBJECT ,定义如下struct _DRIVER_OBJECT (sizeof=168)+00 int16 Type+02 int16 Size+04 struct _DEVICE_OBJECT *DeviceObject+08 uint32 Flags+0c void *DriverStart+10 uint32 DriverSize+14 void *Driv 阅读全文
posted @ 2011-04-19 15:26 sun_kang 阅读(594) 评论(0) 推荐(0) 编辑
摘要: Scheduling, Thread Context, andIRQLAbstractThis paper presents information about how thread scheduling, thread context, and a processor’s current interrupt request level (IRQL) affect the operation of kernel-mode drivers for the Microsoft® Windows® family of operating systems. It is intend 阅读全文
posted @ 2011-04-19 11:36 sun_kang 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: Locks, Deadlocks, and SynchronizationApril 5, 2006AbstractThis paper explains how to use synchronization mechanisms to protect shared memory locations in kernel-mode drivers for the Microsoft® Windows® family of operating systems. By following the guidelines in this paper, driver writers w 阅读全文
posted @ 2011-04-19 11:31 sun_kang 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: 解开 Windows 下的临界区中的代码死锁Matt Pietrek和 Russ Osterlund 下载本文的代码:CriticalSections.exe (415KB) 摘要临界区是一种防止多个线程同时执行一个特定代码节的机制,这一主题并没有引起太多关注,因而人们未能对其深刻理解。在需要跟踪代码中的多线程处理的性能时,对 Windows 中临界区的深刻理解非常有用。 本文深入研究临界区的原理,以揭示在查找死锁和确认性能问题过程中的有用信息。它还包含一个便利的实用工具程序,可以显示所有临界区及其当前状态。在我们许多年的编程实践中,对于 Win32® 临界区没有受到非常多的“und 阅读全文
posted @ 2011-04-19 10:47 sun_kang 阅读(1975) 评论(0) 推荐(0) 编辑