Am Mittwoch, 16. Mai 2007 19:38 schrieb Alan Stern:
> > > It doesn't save code. You need to check for the memory when you
> > > allocate it, no matter when that is done.
> >
> > Yes, but it is a difference doing it once at attach or doing it every time
> > you
> > start a transfer.
>
> Above you said it "saves code". That is wrong.
Not necessarily. Dealing with an allocation error in open() is much
easier than dealing with a failure to resubmit an URB in a completion
handler.
Regards
Oliver
-------------------------------------------------------------------------
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