Re: [KMDF] Removing FDO and let PDO running
- From: Your Name <user@xxxxxxxxxxx>
- Date: Mon, 04 Sep 2006 03:53:40 +0200
> that or somebody in the stack other then acpi is reporting
> PNP_DEVICE_NOT_DISABLEABLE
You're right, here's what my stack looks like with !devnode (also, the stack contains 2 devices.)
# The system timer PDO :
DevNode 0x86add9f0 for PDO 0000000000
(...)
Flags (0000000000)
CapabilityFlags (0xe9766544) LockSupported, UniqueID,
RawDeviceOK, WakeFromD0,
WakeFromD3, HardwareDisabled,
NoDisplayInUI
Unknown flags 0xe9740000
# My FDO :
DevNode 0x86adb1c8 for PDO 0x86add9f0
(...)
Flags (0x000000f0) DNF_ENUMERATED, DNF_IDS_QUERIED,
DNF_HAS_BOOT_CONFIG, DNF_BOOT_CONFIG_RESERVED
UserFlags (0x00000008) ***DNUF_NOT_DISABLEABLE***
CapabilityFlags (0x00000080) SilentInstall
DisableableDepends = 1 (including self)
So it appears I unintentionally set a PNP_DEVICE_NOT_DISABLEABLE user flag somehow. I am not touching any flag of capability directly in my code. How can I unset this flag safely ?
if you have one reference and no handles, you leaked a reference somewhere with ObReferenceObject.
Isn't that reference the one for my running FDO ?? If it was zero, the stack would unload without disabling right ?
.
- Follow-Ups:
- Re: [KMDF] Removing FDO and let PDO running
- From: Doron Holan [MS]
- Re: [KMDF] Removing FDO and let PDO running
- References:
- Re: [KMDF] Removing FDO and let PDO running
- From: Your Name
- Re: [KMDF] Removing FDO and let PDO running
- From: Doron Holan [MS]
- Re: [KMDF] Removing FDO and let PDO running
- Prev by Date: Re: Driver memory footprint/CPU utilization
- Next by Date: Re: Extra reference?
- Previous by thread: Re: [KMDF] Removing FDO and let PDO running
- Next by thread: Re: [KMDF] Removing FDO and let PDO running
- Index(es):
Relevant Pages
|