Bagikan melalui


!wdfkd.wdfdevice

Ekstensi !wdfkd.wdfdevice menampilkan informasi yang terkait dengan handel objek berjenis WDFDEVICE.

!wdfkd.wdfdevice Handle [Flags]

Parameter

Menangani
Handel ke objek berjenis WDFDEVICE.

Bendera
Opsional. Jenis informasi yang akan ditampilkan. Bendera dapat berupa kombinasi bit berikut:

Bit 0 (0x1)
Tampilan akan menyertakan informasi verbose tentang perangkat, seperti handel yang diketik WDFCHILDLIST terkait, cakupan sinkronisasi, dan tingkat eksekusi.

Bit 1 (0x2)
Tampilan akan menyertakan informasi status daya terperinci.

Bit 2 (0x4)
Tampilan akan menyertakan informasi status kebijakan daya terperinci.

Bit 3 (0x8)
Tampilan akan mencakup informasi status Plug and Play (PnP) terperinci.

Bit 4 (0x10)
Tampilan akan menyertakan fungsi panggilan balik objek perangkat.

DLL

Wdfkd.dll

Kerangka kerja

KMDF 1, UMDF 2

Informasi Tambahan

Untuk informasi selengkapnya, lihat Penelusuran Kesalahan Kerangka Kerja Driver Mode Kernel.

Keterangan

Contoh berikut menggunakan ekstensi !wdfkd.wdfdevice pada handel WDFDEVICE yang mewakili objek perangkat fisik (PDO), tanpa menentukan bendera apa pun.

kd> !wdfdevice 0x7cad31c8 

# Dumping WDFDEVICE 0x7cad31c8
=================================

WDM PDEVICE_OBJECTs:  self 81fb00e8

Pnp state:  119 ( WdfDevStatePnpStarted )
Power state:  31f ( WdfDevStatePowerDx )
Power Pol state:  508 ( WdfDevStatePwrPolWaitingUnarmed )

Parent WDFDEVICE 7ca7b1c0
Parent states:
   Pnp state:  119 ( WdfDevStatePnpStarted )
   Power state:  307 ( WdfDevStatePowerD0 )
   Power Pol state:  565 ( WdfDevStatePwrPolStarted )

No pended pnp or power irps
Device is the power policy owner for the stack

Contoh berikut menampilkan objek perangkat yang sama dengan contoh sebelumnya, tetapi kali ini dengan nilai bendera 0xF. Nilai bendera ini, kombinasi bit 0x1, 0x2, 0x4, dan 0x8, menyebabkan tampilan menyertakan informasi perangkat verbose, informasi status daya, informasi status kebijakan daya, dan informasi status PnP.

kd> !wdfdevice 0x7cad31c8 f 

# Dumping WDFDEVICE 0x7cad31c8
=================================

WDM PDEVICE_OBJECTs:  self 81fb00e8

Pnp state:  119 ( WdfDevStatePnpStarted )
Power state:  31f ( WdfDevStatePowerDx )
Power Pol state:  508 ( WdfDevStatePwrPolWaitingUnarmed )

Parent WDFDEVICE 7ca7b1c0
Parent states:
   Pnp state:  119 ( WdfDevStatePnpStarted )
   Power state:  307 ( WdfDevStatePowerD0 )
   Power Pol state:  565 ( WdfDevStatePwrPolStarted )

No pended pnp or power irps
Device is the power policy owner for the stack

Pnp state history:
[0] WdfDevStatePnpObjectCreated (0x100)
[1] WdfDevStatePnpInit (0x105)
[2] WdfDevStatePnpInitStarting (0x106)
[3] WdfDevStatePnpHardwareAvailable (0x108)
[4] WdfDevStatePnpEnableInterfaces (0x109)
[5] WdfDevStatePnpStarted (0x119)

Power state history:
[0] WdfDevStatePowerD0StartingConnectInterrupt (0x310)
[1] WdfDevStatePowerD0StartingDmaEnable (0x311)
[2] WdfDevStatePowerD0StartingStartSelfManagedIo (0x312)
[3] WdfDevStatePowerDecideD0State (0x313)
[4] WdfDevStatePowerD0BusWakeOwner (0x309)
[5] WdfDevStatePowerGotoDx (0x31a)
[6] WdfDevStatePowerGotoDxIoStopped (0x31c)
[7] WdfDevStatePowerDx (0x31f)

Power policy state history:
[0] WdfDevStatePwrPolStarting (0x501)
[1] WdfDevStatePwrPolStartingSucceeded (0x502)
[2] WdfDevStatePwrPolStartingDecideS0Wake (0x504)
[3] WdfDevStatePwrPolStartedIdleCapable (0x505)
[4] WdfDevStatePwrPolTimerExpiredNoWake (0x506)
[5] WdfDevStatePwrPolTimerExpiredNoWakeCompletePowerDown (0x507)
[6] WdfDevStatePwrPolWaitingUnarmedQueryIdle (0x509)
[7] WdfDevStatePwrPolWaitingUnarmed (0x508)

WDFCHILDLIST Handles:
 !WDFCHILDLIST 0x7ce710c8

SyncronizationScope is WdfSynchronizationScopeNone
ExecutionLevel is WdfExecutionLevelDispatch