Skip to contentSkip to conversation

Can a buffer allocated by "vmalloc( )" be used to make DMA transmission (the buffer will be used by BIO structure) on X86_64 platform?

DISCUSSION Yu-Chen Wu 2 participants 2 messages Jan 16, 2007 – Jan 17, 2007

lore
Share & tools
lore

Yu-Chen Wu

author
#0 lore raw

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

#1 lore raw

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) 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?

You can resolve the page via vmalloc_to_page(), and pass it in nopage callback.

Takashi