From: gaoqiang <834555262@qq.com>
To: linux-kernel@vger.kernel.org
Subject: dear list
Date: Thu, 02 Sep 2010 14:51:48 +0800 [thread overview]
Message-ID: <4C7F4984.1060703@qq.com> (raw)
I'm a newbie and got some question when learning the linux kernel
about a macro:
page_to_pfn(pg)
I traced its definition,and finally got that:
#define __page_to_pfn(page) ((unsigned long)((page) - mem_map) +
ARCH_PFN_OFFSET)
why hot ((unsigned long)((page)-mem_map + ARCH_PFN_OFFSET)/sizeof
(struct page)
next reply other threads:[~2010-09-02 6:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 6:51 gaoqiang [this message]
2010-10-14 5:18 ` dear list Américo Wang
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=4C7F4984.1060703@qq.com \
--to=834555262@qq.com \
--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