Re: New USB stack on FreeBSD w/Linux emulation layer coming

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
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
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.