tech-kern archive

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

Re: rbuf starvation in the iwn driver



On Wed, Apr 07, 2010 at 04:38:37PM -0600, Sverre Froyen wrote:
> On Wed April 7 2010 15:54:49 Thor Lancelot Simon wrote:
> > 
> > Doesn't this memory need to be dma-safe?
> 
> It does. I assume it needs to be contiguous and properly aligned, which 
> malloc(9) seems to imply. Does it also need to be wired? I notice that the 
> malloc man page says it's deprecated and to use pool_cache(9) or kmem(9) 
> instead. kmem provides wired memory.

If you want memory you can DMA to/from, I think you need to use
bus_dmamem_alloc().

Thor


Home | Main Index | Thread Index | Old Index