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:33 schrieb Alan Stern:
> > All devices need to allocate some memory, even if they are not used. That is 
> > just the way it is. If you want to save memory, then USB has the advantage 
> > that you can unplug the device and save resources.
> 
> Of course all devices need memory.  But there's a big difference 
> between preallocating 4 KB and preallocating 512 KB.  And if you start 
> telling people they can save memory by unplugging their USB devices, 
> they'll just laugh at you.  Saving memory is the OS's job, not the 
> user's.

If this is the problem do the allocation in usb_alloc_urb(). This way a driver
can choose to use preallocation by reusing URBs or not reusing them.

In any case allocating a single data structure is faster than at a minimum
two data structures.

	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.