LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Can a buffer allocated by "vmalloc( )" be used to make DMA transmission (the buffer will be used by BIO structure) on X86_64 platform?
@ 2007-01-16 14:37 Yu-Chen Wu
  2007-01-17 14:11 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Yu-Chen Wu @ 2007-01-16 14:37 UTC (permalink / raw)
  To: linux-kernel

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Can a buffer allocated by "vmalloc( )" be used to make DMA transmission (the buffer will be used by BIO structure) on X86_64 platform?
  2007-01-16 14:37 Can a buffer allocated by "vmalloc( )" be used to make DMA transmission (the buffer will be used by BIO structure) on X86_64 platform? Yu-Chen Wu
@ 2007-01-17 14:11 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2007-01-17 14:11 UTC (permalink / raw)
  To: Yu-Chen Wu; +Cc: linux-kernel

At Tue, 16 Jan 2007 22:37:56 +0800,
Yu-Chen Wu wrote:
> 
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-17 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-16 14:37 Can a buffer allocated by "vmalloc( )" be used to make DMA transmission (the buffer will be used by BIO structure) on X86_64 platform? Yu-Chen Wu
2007-01-17 14:11 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).