Re: Cause of implementation of IF(totalLength < packetSize) in DispatchReadWrite() of ISOUSB-Sample Driver

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thank you Maxim, maybe I begin to understand how the driver implements
this detail of the specification, that I read before.

I managed it to get the driver work as far as the packets are
concerned. But to verify my assumption I'd beg your help once more.
Here is the code snippet, I want you to check:

if(totalLength > packetSize) {

DbgPrint(1, ("TotalLength = %d\n", totalLength));
DbgPrint(1, ("PacketSize = %d\n", packetSize));
DbgPrint(1, ("Atleast packet worth of data."));

ntStatus = STATUS_INVALID_PARAMETER;
goto DispatchReadWrite_Exit;
}

I took the original condition and changed the comparsion operator.
Afterwards the transfer and completion routine run. Failing a transfer
while the packetSize (which is the same as bMaxPacketSize) or Buffer is
bigger than the requested packet didn't make sense to me.
Now I fear, is this USB compliant any more?

.



Relevant Pages

  • Re: MS SQL Server 2005 JDBC Driver Performance Issue
    ... On to the v1.1 driver! ... You will now be able to tweak the PacketSize (TDS buffer that you use ... will use more memory but be much faster) in these scenarios. ... Shame on Microsoft and Sybase for writing such badly performing JDBC ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Windows WDM USB driver for isochronous data transfer problem
    ... I have a device driver for a USB device based on the wdm model. ... to be called only in case of success) mean the application and driver ... IN PIRP Irp, ... ULONG length, packetSize, numPackets, i; ...
    (microsoft.public.development.device.drivers)
  • lm90 driver testers wanted (MAX6657/8/9)
    ... I received a report that my detection code for the Maxim MAX6657, ... i2c/chips/lm90 driver wouldn't work as intended. ... These chips are similar to the LM86. ... * Since the LM90 was the first chipset supported by this driver, ...
    (Linux-Kernel)
  • Re: MmMapLockedPages with UserMode pointer
    ... "Maxim S. Shatskih" wrote: ... I would suggest to allocate 2GB in user mode by VirtualAlloc, then pass the VA to the driver, the driver will create several tiled MDLs, and MmProbeAndLockPages them. ... Then call ->GetScatterGatherList for each of them, assemble the chain and feed the chain to the busmaster hardware. ...
    (microsoft.public.development.device.drivers)
  • Re: Setting OID_802_11_BSSID through DeviceIOControl()
    ... Maxim Shatskih, Windows DDK MVP ... I did not write a specific driver myself. ... DeviceIOControl() function, I can query all the OIDs of interest without any ...
    (microsoft.public.development.device.drivers)