您的位置:首页 > 其它

驱动术语关系

2012-08-24 19:18 246 查看
          DriverObject

            ↑ DeviceQueue (IRP队列)

            | ↗

AttachedDevice  ← DeviceObject → DeviceExtension → DeviceQueue(自定义队列)

↗ ↘ ↖Dpc|Timer

NextDevice DeviceName → SymbolicLink

设备很容易通过AttachedDevice 从低向高遍历

┌→ Dpc DISPATCH_LEVEL → 执行代码

│ 插入

└─ ISR → DIRQL KeSetTimer

1.Timer:

  I/O Timer >1s IoInitializeTimer

  Dpc Timer <1s

2.KeWaitForSingleObject

3.KeDelayExecutionThread

4.KeStallExecutionProcessor

利用DPC和Timer对Irp超时进行处理

I/O 端口:

Ke386SetIoAccessMap

WDM:

PNP管理器:

    IRP_MN_START_DEVICE

    CM_PARTIAL_RESOUCE_LIST

    (_IO_STACK_LOCATION)stack->Parameters->StartDevice->AllocatedResourcesTranslated
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: