Re: Which is the best way to implement Driver managed Queues ?

Hi Peter

"You may only use it while you own the IRP in your driver. "

Does this mean when the IRP reaches our driver layer , even though our
driver does not create the IRP ?

Is there anyway , some driver could be using Tail.Overlay.ListEntry variable
and still passing down to next level layer ? Any example ?

Thanks in advance
srinivasa

-----Original Message-----
From: Peter Viscarola [mailto:xxxxx@osr.com]
Sent: Wednesday, August 14, 2002 11:04 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Which is the best way to implement Driver managed
Queues ?

“Deevi, Srinivasa” wrote in message
news:xxxxx@ntdev…
>
> . Is it good to do this way ? Can we use the ListEntry variable in IRP in
> any layer where the IRP would be kept pended ?
>

Yes. Tail.Overlay.ListEntry is there precisely for this purpose. You may
only use it while you own the IRP in your driver. If you pass the IRP down
the stack and get it back, you should expect the contents of this location
to have changed.

Chris Dore" wrote in message news:xxxxx@ntdev…>
> You also have “Cancel-Safe IRP Queues” available to you, they are in the
DDK
> but don’t get used in too many of the samples…yet.
>

I’d strongly recommend you investigate the use of the IoCsqXxxx functions in
the DDK. They are no more difficult to use than setting up your own queues,
and they can simplify cancel handling enormously. They’re trivial to
implement – There’s an easy to understand sample provided in the ddk
\ddk\src\general\cancel…

Peter
OSR


You are currently subscribed to ntdev as: xxxxx@microtune.com
To unsubscribe send a blank email to %%email.unsub%%