Re: patch to shift memory allocations to usb_alloc_urb()

David Brownell <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Friday 29 June 2007, Oliver Neukum wrote:
> Am Freitag, 29. Juni 2007 schrieb Greg KH:

> > And, as a plus, it let's us break the api again :)

We need a "megasmiley" glyph.  ;)


> I am very reluctant to do that. It makes preallocating the tds impossible.
> If anything, we should split apart the allocator into 4 functions, one for
> each type of URB.

Gaak.  Just pass the usb_host_endpoint pointer in, with the relevant
length indicator.  Four functions would be ugly, unclean, unneceesary.
All the relevant data is in the endpoint descriptor, which is stored
in the host_endpoint struct.

And that'll let use of the new interfaces be rolled in gradually,
without any need to break existing/working code.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.