You control when you complete the wait wake power request. You can defer completion outside of the completion routine if needed to coordinate with the cancelation attempt
d
Bent from my phone
From: xxxxx@intel.commailto:xxxxx
Sent: ?4/?1/?2015 7:31 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] Wait-wake IRP completion and IoCancelIrp race
Doron,
Thank you for your answer.
Does your explanation applies to the power IRPs as well?
I am using the PoRequestPowerIrp to request the IRP. The MSDN states:
“The PowerCompletion routine performs any additional tasks the sender of the IRP requires after all other drivers have completed the IRP. It need not free the IRP; the power manager does that.”
Since the FUNCTION driver is not freeing the IRP directly I am not able to control when IoFreeIrp should be called.
Is there a way to control power manager on when should it free the IRP?
Best regards,
Marek Dabek
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>