Re: isp1760 vs pehci: use of kmem_cache_create

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 06, 2010 at 05:49:03PM -0400, Richard Retanubun wrote:
> Hello,
> 
> I am trying to compare the isp1760 from linux mainline vs the pehci driver from STErricson
> one thing stands out right away in the init functions
> 
> the isp1760's kmem_init_once creates two kmem chace for struct isp1760_qtd and struct isp1760_qh
> which seems to be a  common structure created by other HCD drivers.
> 
> the pehci driver however, creates three kmem_cache for qtd, qh, and qha, all sizeof(isp1761_qha)
> 
> Can someone please enlighten me to the different approaches being used here?

Why not ask the pehci driver authors what they were thinking of when
allocating all of those caches, we certainly don't know :)

Seriously, it's probably just because they wanted to reuse the buffers a
lot, it's a common way to not have to worry about buffer allocation at
inconvenient times.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux