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

Discussion in 'Windows Vista Drivers' started by Senthil, Jun 12, 2012.

  1. Senthil

    Senthil Guest

    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
    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?

    Senthil, Jun 12, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.