共用方式為


!usbkd.usbtx

!usbkd.usbtx 命令會顯示來自 usbport!_HCD_TRANSFER_CONTEXT 結構的資訊。

!usbkd.usbtx StructAddr

參數

結構Addr
usbport!_HCD_TRANSFER_CONTEXT 結構的位址。 若要取得 USB 主機控制器的傳輸清單,請使用 !usbkd.usbhcdext 命令。

DLL

Usbkd.dll

範例

以下是尋找 usbport!_HCD_TRANSFER_CONTEXT 結構的位址的一種方式。 首先輸入 !usbkd.usb2tree

0: kd> !usbkd.usb2tree
...
4)!uhci_info ffffe00001c8f1a0 !devobj ffffe00001c8f050 PCI: VendorId 8086 DeviceId 2938 RevisionId 0002 
...

在上述輸出中,FDO 的裝置擴充地址會顯示為 DML 命令的自變數 !uhci_info ffffe00001c8f1a0

按兩下 DML 命令,或將裝置擴充功能的位址傳遞至 !usbhcdext 以取得傳輸清單。

0: kd> !usbkd.usbhcdext ffffe00001c8f1a0
...
## I/O TRANSFER LIST(s)

1.) Transfer Request Priority List: (TxQueued) Type: 0-NotSplit, 1-Parent, 2-Child
    --------------------------------------------------------------------------------
    [000]!usbtx ffffe0000653401c !usbep ffffe00004730c60 !irp ffffe00004221220 State: (7)TX_Mapped_inMp
        Priority: 0, Type: 0, Flags= 0000000a, SequenceNum: 10, SplitIdx: 0
        InLen: 4096, OutLen: 0 Status: USBD_STATUS_PENDING (0x40000000)
    ...

在上述輸出中,ffffe0000653401c是 _HCD_TRANSFER_CONTEXT結構的位址。 將此位址傳遞至 !usbtx

0: kd> !usbkd.usbtx ffffe0000653401c

dt usbport!_HCD_TRANSFER_CONTEXT ffffe0000653401c
dt usbport!_TRANSFER_PARAMETERS ffffe0000653417c

## TX HISTORY

## EVENT, STATE, NEXT (latest at bottom)

[01]    (23)Ev_TX_Icsq, (0)TX_Undefined, (1)TX_InQueue
[02]    (5)Ev_TX_MapTransfer, (1)TX_InQueue, (2)TX_MapPending
[03]    (7)Ev_TX_MpSubmitSuccess, (2)TX_MapPending, (7)TX_Mapped_inMp

**DMA**
dt usbport!_TRANSFER_SG_LIST ffffe0000653439c
SgCount:  1  MdlVirtualAddress: ffffe00000437000  MdlSystemAddress: ffffe00000437000
    [0] dt usbport!_TRANSFER_SG_ENTRY ffffe000065343bc
    : sysaddr: 0000000000000000 len 0x00001000(4096) offset 0x00000000(0) phys 00000000'ded90000
---
dt usbport!_SCATTER_GATHER_ENTRY ffffe000065343ec
dt _SCATTER_GATHER_LIST ffffe00001bc231c
NumberOfElements = 1
    [0] dt _SCATTER_GATHER_ELEMENT ffffe00001bc232c
     :phys 00000000'ded90000 len 0x00001000(4096)

另請參閱

USB 2.0 調試程式擴充功能

通用序列總線 (USB) 驅動程式