[lkml]   [2008]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: Scatter-gather list constraints
On Tue, 24 Jun 2008, Perez-Gonzalez, Inaky wrote:

> >From: David Vrabel []
> >
> >> That would be ideal. However there is no way to pass an S-G list
> along
> >> with an URB; there's no field for it in the data structure. And none
> >> of the existing host controller drivers support such a thing.
> >>
> >> I suppose we could add a field to struct urb and add a flag
> indicating
> >> whether the controller driver supports S-G lists.
> >
> >This is what I was thinking.
> That would simplify a *LOT* of WUSB wire-adapter code which now is a
> horrible kludge.

In what way would it simplify the code?

Note that usbcore already contains a scatter-gather library.
(Unfortunately the library is limited in usefulness because it needs to
run in process context.)

Alan Stern

 \ /
  Last update: 2008-06-25 16:27    [W:0.083 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site