!ndiskd.ndisref

!ndiskd.ndisref 扩展显示跟踪引用计数的调试日志。

!ndiskd.ndisref -handle <x> [-tagtype <str>] [-stacks] [-tag <str>] [-refdebug] 

参数

-handle
必需。 refcount 块的句柄。

-tagtype
标记的枚举类型。

-stacks
包括堆栈跟踪(如果可用)。

-tag
将显示限制为单个标记。

-refdebug
显示详细的调试日志(如果可用)。

DLL

Ndiskd.dll

示例

以下示例将 NDIS 微型端口驱动程序的句柄传递给 !ndiskd.ndisref 扩展,以显示该驱动程序的 refcount 块。 首先,在没有参数的情况下运行 !ndiskd.minidriver 命令,以查看系统上的所有微型端口驱动程序的列表。 在下面的示例输出中,查找 kdnic 驱动程序的句柄 ffffdf801418d650。

3: kd> !ndiskd.minidriver
    ffffdf8015a98380 - tunnel
    ffffdf801418d650 - kdnic

使用微型端口驱动程序的句柄,输入 !ndiskd.ndisref -handle 命令以查看此微型端口驱动程序的 refcount 块。 为了简洁起见,下面的示例删除了 refcount 块的中间部分。

3: kd> !ndiskd.ndisref ffffdf801418d650


REFCOUNT BLOCK

    Tag                                    Number of references                 
    0n0                                    0n6293             Show stacks
    0n1                                    0n1045             Show stacks
    0n2                                    0n4294966717       Show stacks
    0n5                                    0n25048            Show stacks
    0n18                                   0n4294967293       Show stacks
    0n19                                   0n4294967295       Show stacks
    0n21                                   0n4294967036       Show stacks
    0n23                                   0n30818            Show stacks
    0n24                                   0n24693            Show stacks
    0n25                                   0n25808            Show stacks

...

    0n153                                  0n7                Show stacks
    0n154                                  0n3                Show stacks
    0n156                                  0n29972            Show stacks
    0n159                                  0n4294959128       Show stacks
    0n160                                  0n30892            Show stacks
    0n161                                  0n136              Show stacks
    0n162                                  0n4294951910       Show stacks
    0n163                                  0n30892            Show stacks
    0n164                                  0n136              Show stacks
    0n167                                  0n4294965996       Show stacks

    Include inactive tags

另请参阅

网络驱动程序设计指南

Windows Vista 和更高版本的网络参考

调试网络堆栈

NDIS 扩展(Ndiskd.dll)

!ndiskd.help

!ndiskd.minidriver