alloc_pages() only lets me allocate up to 2^9 pages at once, or 2 MB.
Let's take the following situation: I've just booted a machine that contains 4 GB of memory on a 32-bit machine.
How would I grab ALL of that memory statically, atomically, and contiguously from within the kernel for use?
Is this possible in linux?
At 02:37 AM 4/11/2005, you wrote:
-----Original Message----- From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx]On Behalf Of Michael Hines
>I want to allocate *permanent* and *atomic* high-memory pages >for long periods of time within the kernel.
look in to alloc_pages(), kmap() etc.
/*********************************/ Michael R. Hines Grad Student, Florida State Dept. Computer Science http://www.cs.fsu.edu/~mhines/ Jusqu'à ce que le futur vienne... /*********************************/
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/