WinUsb_FlushPipe behavior simulation in Client Driver

Hi Folks,

I am developing WDM based USB Client Driver.

It is having similar functionlities as WinUSB Driver but It will be a kernel
mode driver, So that we can have more control over things.

I want to simulate *WinUsb_FlushPipe *behavior in my client driver. Is it
possible?

I didnt find anything like Flush Pipe, Things which we can do
URB_FUNCTION_RESET_PIPE
URB_FUNCTION_SYNC_RESET_PIPE URB_FUNCTION_SYNC_CLEAR_STALL

Please provide your valuable suggestion.

Regards
Sunil

Why is WinUSB itself not good enough? Why WDM instead of kmdf?

d

dent from a phpne with no keynoard


From: Sunil Kumar
Sent: November 11, 2010 8:24 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] WinUsb_FlushPipe behavior simulation in Client Driver

Hi Folks,

I am developing WDM based USB Client Driver.

It is having similar functionlities as WinUSB Driver but It will be a kernel mode driver, So that we can have more control over things.

I want to simulate WinUsb_FlushPipe behavior in my client driver. Is it possible?

I didnt find anything like Flush Pipe, Things which we can do

URB_FUNCTION_RESET_PIPE
URB_FUNCTION_SYNC_RESET_PIPE
URB_FUNCTION_SYNC_CLEAR_STALL

Please provide your valuable suggestion.

Regards
Sunil
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Sunil Kumar wrote:

I am developing WDM based USB Client Driver.

It is having similar functionlities as WinUSB Driver but It will be a
kernel mode driver, So that we can have more control over things.

WinUSB exposes every URB. Unless you have multiple configurations,
there’s nothing you can do in a kernel driver that cannot be done in WinUSB.

I want to simulate *WinUsb_FlushPipe *behavior in my client driver. Is
it possible?
I didnt find anything like Flush Pipe,

WinUSB_FlushPipe is a software operation. It is only necessary because
WinUSB buffers the data. The kernel USB stack doesn’t do any buffering,
so there is no need for a flush operation. If you implement your driver
so that you do buffering, then you might want the equivalent, but it
would be strictly internal to your driver.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thanks a lot Tim!!
I got what I was looking for!!

Regards
Sunil
On Fri, Nov 12, 2010 at 11:07 PM, Tim Roberts wrote:

> Sunil Kumar wrote:
> >
> > I am developing WDM based USB Client Driver.
> >
> > It is having similar functionlities as WinUSB Driver but It will be a
> > kernel mode driver, So that we can have more control over things.
>
> WinUSB exposes every URB. Unless you have multiple configurations,
> there’s nothing you can do in a kernel driver that cannot be done in
> WinUSB.
>
> > I want to simulate *WinUsb_FlushPipe *behavior in my client driver. Is
> > it possible?
> > I didnt find anything like Flush Pipe,
>
> WinUSB_FlushPipe is a software operation. It is only necessary because
> WinUSB buffers the data. The kernel USB stack doesn’t do any buffering,
> so there is no need for a flush operation. If you implement your driver
> so that you do buffering, then you might want the equivalent, but it
> would be strictly internal to your driver.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>