From: Kyle McMartin <kyle@parisc-linux.org>
To: Yu-Chen Wu <g944370@oz.nthu.edu.tw>
Cc: "'Anton Altaparmakov'" <aia21@cam.ac.uk>, linux-kernel@vger.kernel.org
Subject: Re: Could convert a buffer that allocated by vmalloc to pages?
Date: Tue, 23 Jan 2007 10:42:02 -0500 [thread overview]
Message-ID: <20070123154202.GA8892@athena.road.mcmartin.ca> (raw)
In-Reply-To: <030801c73ef8$f2198a00$0100a8c0@sslabmayasky>
On Tue, Jan 23, 2007 at 10:15:33PM +0800, Yu-Chen Wu wrote:
> printk(KERN_INFO "vmalloc_to_page tpage :%x\n",tpage);
> //===========info of dmesg==================
<snip>
> [ 1561.768492] page allocated:60ea9000
> [ 1561.768497] vmalloc_to_page tpage :7fcf7e18
>
> Why the page address get from vmalloc_to_page is different with the first
> page address of the vm_struct (73d65000)?
>
Memory returned by vmalloc is only virtually contiguous, not physically
contiguous. If you're allocating memory for DMA, see the interface
documented in Documentation/DMA-mapping.txt for more information.
-- Kyle
prev parent reply other threads:[~2007-01-23 15:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-23 13:04 Yu-Chen Wu
2007-01-23 13:12 ` Anton Altaparmakov
2007-01-23 14:15 ` Yu-Chen Wu
2007-01-23 14:50 ` Anton Altaparmakov
2007-01-23 15:40 ` Yu-Chen Wu
2007-01-23 19:36 ` Anton Altaparmakov
2007-01-23 15:42 ` Kyle McMartin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070123154202.GA8892@athena.road.mcmartin.ca \
--to=kyle@parisc-linux.org \
--cc=aia21@cam.ac.uk \
--cc=g944370@oz.nthu.edu.tw \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®