> > > > A driver-wide cache of pre-initialized URBs could make some > > > > sense, but a USB-wide one would just duplicate kmem_cache > > > > functionality so far as I can tell. > > > > > > So it would seems. But that does not mean that using the slab > > > cache is a bad idea, does it ? > > > > > > Do you know how to use the slab cache ? > > > > kmalloc() does so automatically. > > I see. It seems to do so based on the size. > Do we want urbs intermixed with other > allocations of that size ?
I can't see any reason why not. ISTR recently freed meant next to be reused, so interactions with caches ought not to be severe. > Do we save memory ? If not, that's a global kernel issue and not just a USB one. > Is the slab cache > limited to power of 2 objects ? You can create caches of whatever size you want. Sharing the general purpose caches saves memory. _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
