Re: Receiving IOCTLs in a KMDF bus driver
- From: "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Apr 2007 22:13:23 -0700
when you create a PDO, create as many WDFQUEUEs on the device as you need to
handle the I/O. as don states, WDFQUEUEs created onthe FDO do not apply to
the PDOs you create
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Don Burn" <burn@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:OTnDPpbhHHA.3452@xxxxxxxxxxxxxxxxxxxxxxx
I suspect in your WDM bus driver you were not distinguishing between
devices for IOCTL handling, so your child drivers were sending the IOCTL to
the PDO and you were processing it. In KMDF each device has a set of
handlers, and the bus toaster bus driver only handles the IOCTL requests on
the control decide.
If this is the case, you either need to modify the upper drivers, or add a
queue handler to the bus driver so that PDO can see IOCTL's.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"EricH" <EricH@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F9939577-151E-44F7-B781-CD58137A92DC@xxxxxxxxxxxxxxxx
My company is moving an existing device to a new bus. To preserve
existing
device driver code, I am trying out the toaster's bus example.
While I have made the Dynamic Bus Enumerator load my device, its IoQueues
are not receiving the IOCTLs if sent from the child. When I replace the
KMDF
bus driver with the WDM bus driver, I can easily capture the IOCTL IRPs.
Using IrpTrace from OSR, I can see that the IRPs from the child device
driver are being generated in both cases. Only in the KMDF case, the IRP
returns with INVALID_DEVICE_REQUEST. I assume that the WDF default code
is
completing the IRP silently.
What needs to be done to modify the toaster bus sample to permit IOCTLs
from
child devices to be processed?
Thank you,
Eric
.
- References:
- Re: Receiving IOCTLs in a KMDF bus driver
- From: Don Burn
- Re: Receiving IOCTLs in a KMDF bus driver
- Prev by Date: Re: Q about sending 10k of data to USB device.
- Next by Date: Re: How to modify the soundcard buffer?
- Previous by thread: Re: Receiving IOCTLs in a KMDF bus driver
- Next by thread: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature?
- Index(es):
Relevant Pages
|