Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Forward wdf request to a Remot IO Target without creating new request.

24 views
Skip to first unread message

Senthil

unread,
Jun 11, 2012, 8:41:36 PM6/11/12
to
Hi,
Would it be possible to forward a read WDF request that my driver
(driver 1) received from an upper layer to another driver (driver 2)
that is part of a different driver stack? I just want to forward the
original request and I do not want to create a new WDF request. Is
this possible? If YES how? If NO why and what should I have to do?

My driver is a KMDF driver.

In the WDM world, this scenario would require driver 1
1. pend the oringal request
2. creating a new IRP
3. format the new IRP it accordingly
4. Set a completion routine for the new IRP
5. send new IRP to the driver 2 and wait for it to be completed by
driver 2 and
6. complete the original request (I have omitted the cancel part for
simplicity).
This is required since the current IRP that driver 1 recived from
upper layer might have different number of stack locations than what
is needed by the driver stack 2.

I wonder how this scenario translates into the KMDF world. Does it
require driver 1 to create a new WDF request and send it to driver 2?
Or the framework can handle this internally by creating a new WDF
request for the driver stack 2, send it down and then complete my
originaly request when then new one gets completed by driver stack 2?

Thanks,
SanaSenthil
0 new messages