--- [EMAIL PROTECTED] wrote:
> #define virt_to_page(kaddr) (mem_map + (__pa(kaddr) >> PAGE_SHIFT))
> ...
>
> So why is a pointer to a structure getting into pointer arithmetic?
I suppose mem_map is a pointer to an array of mem_map_t structures, and
__pa(kaddr) >> PAGE_SHIFT is the index of the page with the virtual
address.
Disclaimer: I'm not a kernel hacker of any kind; I'm just reading the
plex86 mailing list for a while. I saw your question and hope my answer is
a help to you.
Greetings,
Roel Schroeven
=====
__________________________________________________
| [EMAIL PROTECTED]
| .===,
| : _
| "==____/ `
| <<<<\_,
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/