Passing an IOCTL_INTERNAL_USB_SUBMIT_URB from one PDO to another.
From: Lars-Åke Berg (lars-ake.berg_at_nibland.org)
Date: 10/28/04
- Next message: Maxim S. Shatskih: "Re: Figuring out the boot device in a lower filter driver?"
- Previous message: serge: "Re: bandwidth limit"
- Next in thread: Calvin Guan: "Re: Passing an IOCTL_INTERNAL_USB_SUBMIT_URB from one PDO to another."
- Reply: Calvin Guan: "Re: Passing an IOCTL_INTERNAL_USB_SUBMIT_URB from one PDO to another."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 28 Oct 2004 23:01:10 +0200
All,
I hope that you will be able to need help me with the following problem.
I'm developing a functional driver that fixes a class id problem in the usb
chip in a device.
The function driver creates a 'virtual' PDO that is enumerated by the PnP
Manager. This PDO reports the correct class id (this works).
Now to the actual problem:
When a higher driver sends an IRP_MJ_INTERNAL_DEVICE_CONTROL
(IOCTL_INTERNAL_USB_SUBMIT_URB), I receive it in my dedicated Dispatch
function.
How do I forward this request to the 'real' PDO in a lower driver (my
'virtual' PDO is at the stack bottom according to the upper driver, so an
ordinary IoSkipCurrentStackLocation(pIrp);IoCallDriver(.) gives an
exception) and when done report back the result to the original IRP sent by
upper driver (from my functional driver view)?
Pleas advice, now I get a data alignment exception in the usbhub all the
time (I'm probably forwarding the wrong data from the original IRP). I
forward the request by building a new IRP dedicated for the lower drivers
(using IoBuildDeviceIoControlRequest for which I may use the wrong data from
original IRP as input buffer, output buffer, and length etc.).
/Lars-Åke Berg
- Next message: Maxim S. Shatskih: "Re: Figuring out the boot device in a lower filter driver?"
- Previous message: serge: "Re: bandwidth limit"
- Next in thread: Calvin Guan: "Re: Passing an IOCTL_INTERNAL_USB_SUBMIT_URB from one PDO to another."
- Reply: Calvin Guan: "Re: Passing an IOCTL_INTERNAL_USB_SUBMIT_URB from one PDO to another."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|