regarding the crash, during surprise removal

Hi All,

When ever i remove my device , i see the driver crashes. I know the reason behind it , its basically a request which is sent to the lower driver is not canceled or completed.

Can any one tell me how to do solve this problem

The driver stack looks like this

UMDF Function Driver
created |
KMDF mUltifunction Drv---------------->KMDF PDO Driver

As the calls to kmdf driver are all asynchrounous we need to pend a request to the lower driver so that it can notify.

Now, when a notification request is sent down and the device is removed , then how should i cancel the sent request.??? As the request is sent synchrounously from UMDF driver to KMDF driver[my notification thread is waiting indefiniately for the request to complete or canceled].

Please if any one knows the solution for this ??

Please post the !analyze -v information.

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Thursday, August 02, 2007 00:06
To: Windows System Software Devs Interest List
Subject: [ntdev] regarding the crash, during surprise removal

Hi All,

When ever i remove my device , i see the driver crashes. I know the
reason behind it , its basically a request which is sent to the lower
driver is not canceled or completed.

Can any one tell me how to do solve this problem

The driver stack looks like this

UMDF Function
Driver
created |
KMDF mUltifunction Drv---------------->KMDF PDO Driver

As the calls to kmdf driver are all asynchrounous we need to pend a
request to the lower driver so that it can notify.

Now, when a notification request is sent down and the device is removed
, then how should i cancel the sent request.??? As the request is sent
synchrounously from UMDF driver to KMDF driver[my notification thread is
waiting indefiniately for the request to complete or canceled].

Please if any one knows the solution for this ??


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

Hi Martin,

I have not collected the dump, but let me tell you what happens ,

The Wdfhost process which is running never dies , i will post u the dump
soon…

But just a question , do u know how to cancel the Syncronous IRP 's sent to
the lower driver, when we get a OnRealeseHardware call.

Thanks ,
with regards ,
Jagadish

n 8/2/07, Martin O’Brien wrote:
>
> Please post the !analyze -v information.
>
> mm
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> xxxxx@gmail.com
> Sent: Thursday, August 02, 2007 00:06
> To: Windows System Software Devs Interest List
> Subject: [ntdev] regarding the crash, during surprise removal
>
> Hi All,
>
> When ever i remove my device , i see the driver crashes. I know the
> reason behind it , its basically a request which is sent to the lower
> driver is not canceled or completed.
>
> Can any one tell me how to do solve this problem
>
> The driver stack looks like this
>
> UMDF Function
> Driver
> created |
> KMDF mUltifunction Drv---------------->KMDF PDO Driver
>
>
> As the calls to kmdf driver are all asynchrounous we need to pend a
> request to the lower driver so that it can notify.
>
> Now, when a notification request is sent down and the device is removed
> , then how should i cancel the sent request.??? As the request is sent
> synchrounously from UMDF driver to KMDF driver[my notification thread is
> waiting indefiniately for the request to complete or canceled].
>
> Please if any one knows the solution for this ??
>
>
> —
> 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
>
> —
> 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
>