[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:
** Reply to message from "hai huang" <haih@umich.edu> on Tue, 13 Feb 2001
09:11:23 -0800
> Thanks for your quick response Rik. But to me, it seems that there must be
> some kind of mechanism similar to an inverted page table so the kernel knows
> which physical memory maps to which virtual memory.
No, there isn't.
My current job required me to write a routine which would allow a driver to
allocate a specific physical page, provided that page was not already allocated.
In order for me to do that, I had to search the free physical page structures
for a block of free pages that contained the page I wanted. When I found it, I
had to reorganize those structures so that get_free_pages would allocate that
particular block.
I would not have needed to do all this if there was a mapping that you describe.
--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com
When replying to a mailing-list message, please direct the reply to the mailing list only. Don't send another copy to me.
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.surriel.com/kernelnewbies.shtml