dear list
From: gaoqiang
Date: Thu Sep 02 2010 - 02:51:59 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/