[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C7F4984.1060703@qq.com>
Date: Thu, 02 Sep 2010 14:51:48 +0800
From: gaoqiang <834555262@...com>
To: linux-kernel@...r.kernel.org
Subject: dear list
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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists