[openib-general] Re: [kDAPL]questions about the LMR creation of different types of memory
Roland Dreier
rdreier at cisco.com
Thu Dec 8 12:16:03 PST 2005
ian> 1) Could memory allocated by kmem_cache_create() be OK?
ian> AFAIK, memory allocated by kmalloc() is OK and that by
ian> vmalloc() is not.
James> Correct, assuming you pass kmalloc the GFP_DMA flag.
No, the GFP_DMA flag is not necessary. On x86 is means to allocate
from the 24-bit ISA DMA region (ie the low 16 MB of RAM). In general
it is never necessary to use GFP_DMA in modern code.
- R.
More information about the general
mailing list