hot-plug issue in WDF bus driver

Dear all
I have a WDF bus driver. It will create two child PDO and child function driver will be loaded for child PDO.
My question is about hot-plug. When there is any request in child function driver or bus driver and then I call WdfPdoMarkMissing to child pdo. child function driver cannot receive query remove or remove callbacks.
Why cannot child function driver receive remove callback? There is a message device is in use,if I use WdfPdoRequestEject to replace WdfPdoMarkMissing at this situation.

I found child function driver can receive remove callbacks if there is no request in bus and child function driver.

thank you very much.

denny

Query remove only happens on graceful remove, not surprise removal. Any handles opened against the child stack?

d

sent from my phpne

-----Original Message-----
From: xxxxx@gmail.com
Sent: April 24, 2010 7:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] hot-plug issue in WDF bus driver

Dear all
I have a WDF bus driver. It will create two child PDO and child function driver will be loaded for child PDO.
My question is about hot-plug. When there is any request in child function driver or bus driver and then I call WdfPdoMarkMissing to child pdo. child function driver cannot receive query remove or remove callbacks.
Why cannot child function driver receive remove callback? There is a message device is in use,if I use WdfPdoRequestEject to replace WdfPdoMarkMissing at this situation.

I found child function driver can receive remove callbacks if there is no request in bus and child function driver.

thank you very much.

denny


NTDEV is sponsored by OSR

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