Re: How to Fire Multiple URBs from allication or driver?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



first, you should get the 6000 WDK, it is the latest driver kit. your driver can send i/o to the device on its own without the application initiating it. you would hten have to keep a copy of the data you read until the application asked for it.

I would recommend that you look at using KMDF or even better, winusb to communicate with your hardware. If you use KMDF it has a feature called a continous reader which will constantly send N number of URBs to the device. If you use winusb, you can get rid of your driver completely and do all of the i/o from the application. Both are available in the WDK.

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.


"slsnios" <slsnios.2tlzmk@xxxxxxxxxxxxxxxxxxxxx> wrote in message news:slsnios.2tlzmk@xxxxxxxxxxxxxxxxxxxxxxxx

Hi All,
I developed USB2.0 High speed driver from DDK 2003 SP1. I made some
changes that will handle my custome device.

I created an application which use overlapped I/O as NULL, so using
this my application has to wait for bytes read/write that i defined. Now
using this only single URB is active at time. But how can i generate
multiple URBs, so using that OS scheduler can execute URBs in fast
manner when it gets the time slice for USB bus.

I think that using asychronous method i can achieve this, but that is
from the application level. How it would be possible to create multiple
URBs from driver or directly from application.

Please suggest me.
Regards,
slsnios



--
slsnios
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------


.



Relevant Pages

  • [PATCH 19-rc1] Fix typos in /Documentation : U-Z
    ... when the underlying device was capable of handling the i/o in one shot. ... using dev->irq by the device driver to request for interrupt service ... The EMU10K2 chips have a DSP part which can be programmed to support ... -(This acticle does not deal with the overall functionality of the ...
    (Linux-Kernel)
  • Re: [PATCH 19-rc1] Fix typos in /Documentation : U-Z
    ... +iii.Ability to represent large i/os w/o unnecessarily breaking them up (i.e ... when the underlying device was capable of handling the i/o in one shot. ... using dev->irq by the device driver to request for interrupt service ... -(This acticle does not deal with the overall functionality of the ...
    (Linux-Kernel)
  • [PATCH 18-rc3] Fix typos in /Documentation : S
    ... Request flows seen by I/O schedulers ... cpufreq-stats is a driver that provices CPU frequency statistics for each CPU. ... +interface will appear in a separate directory under cpufreq ... This drives supports all SMC ISA/MCA adapters. ...
    (Linux-Kernel)
  • Re: Does anyone remember IAS?
    ... interesting from an I/O point of view in that every driver was also ... and the RSX11D and IAS privilege sets prefigured the ... I wrote the driver ...
    (comp.os.vms)
  • Re: NdisProt and multiple handles to the same device
    ... opens. ... You could, for example, perform the read using asynchronous I/O. ... Considering changing the driver the way you are thinking suggests that you ... Now the default ndisprot implementation prevents this by preventing ...
    (microsoft.public.development.device.drivers)