windbg常用查看设备command

1.!devnode    显示设备节点
2.!devobj       显示设备对象信息,后面可根据参数决定信息内容
3.!drvobj        显示驱动对象信息
4.!devstack   显示设备对象堆栈
一!devnode
!devnode Address [Flags][Service]
!devnode 1
!devnode 2
!devnode扩展显示设备树中的一个节点的信息。
Address
指定要显示节点的设备扩展的十六进制地址。
如果是零,则显示主设备树的根。
Flags
指定要显示的输出级别。
可以是下列任意组合:
Bit 0(0 x1)
显示包含设备节点的所有子节点。
Bit 1(0 x2)
显示包含使用的资源(CM_RESOURCE_LIST)。
其中包括IRP_MN_QUERY_RESOURCES报告的引导配置,以及在IRP_MN_START_DEVICE的AllocatedResources参数中分配给设备的资源。
Bit 2(0 x4)
将显示的内容包括IRP_MN_FILTER_RESOURCE_REQUIREMENTS所报告的所需资源(IO_RESOURCE_REQUIREMENTS_LIST)。
Bit 3(0×8)
导致显示包括一系列翻译资源分配给设备IRP_MN_START_DEVICE AllocatedResourcesTranslated参数的。
Bit 4(0 x10)
指定未启动的设备节点应该显示。
Bit 5(0 x20)
指定只能显示带有问题的设备节点。
(这些是包含标记位DNF_HAS_PROBLEM或DNF_HAS_PRIVATE_PROBLEM的节点。)
Service
指定服务的名称。
如果包含此功能,则只显示由该服务驱动的设备节点。
(如果标志包含了bit 0x1,由该服务驱动的设备节点及其所有的孩子将被显示)。
The !devnode 1 command lists all pending removals of device objects.
The !devnode 2 command lists all pending ejects of device objects.
You can use !devnode 0 1 to see the entire device tree.
二 !devobj
The !devobj extension displays detailed information about a DEVICE_OBJECT structure.
    !devobj DeviceObject Parameters
DeviceObject
Specifies the device object. This can be the hexadecimal address of this structure or the name of the device.
三 !drvobj
The !drvobj extension displays detailed information about a DRIVER_OBJECT.
    !drvobj DriverObject [Flags]
DriverObject
    Specifies the driver object. This can be the hexadecimal address of the DRIVER_OBJECT structure or the name of the driver.
Flags
Can be any combination of the following bits. (The default is 0x01.)
Bit 0 (0x1)
Causes the display to include device objects owned by the driver.
Bit 1 (0x2)
Causes the display to include entry points for the driver's dispatch routines.
Bit 2 (0x4)
!drvobj pci
显示所有pci驱动地址
四 !devstack
Lists with detailed information the device objects owned by the driver (requires bit 0 (0x1)).
The !devstack extension displays a formatted view of the device stack associated with a device object.
    !devstack DeviceObject
Parameters
DeviceObject
Specifies the device object. This can be the hexadecimal address of the DEVICE_OBJECT structure or the name of the device.



  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值