Can a buffer allocated by "vmalloc( )" be used to make DMA transmission (the buffer will be used by BIO structure) on X86_64 platform?
Hi all,
Can a buffer allocated by "vmalloc( )" be used to make DMA transmission (the buffer will be used by BIO structure) on X86_64 platform?
I need a big buffer (cache) maybe 64MB or bigger, so I call vmalloc to allocate the buffer.
If possible, how to get the pages in the buffer?
Thanks
At Tue, 16 Jan 2007 22:37:56 +0800,
Quoted 7 lines · Yu-Chen Wu
Hi all,
Can a buffer allocated by "vmalloc( )" be used to make DMA transmission (the buffer will be used by BIO structure) onX86_64platform?
I need a big buffer (cache) maybe 64MB or bigger, so I call vmalloc to allocate the buffer.
If possible, how to get the pages in the buffer?
You can resolve the page via vmalloc_to_page(), and pass it in nopage callback.
Takashi