Re: getting contiguous physical memory

From: Jamie Lokier (lkd@tantalophile.demon.co.uk)
Date: Sat Jan 08 2000 - 15:44:09 EST


Frederick Barnes wrote:
> I've been trying to install the bigphysarea stuff in
> the 2.3.36 kernel. However, the memory management
> has changed somewhat and memory_{start,end} no longer
> exist. What's the new strategy for getting n contigous
> pages at boot time (and a pointer to the start in the
> kernels address space) ?

#include <linux/bootmem.h>

alloc_bootmem(size)
alloc_bootmem_low(size) for GFP_DMA pages

Also alloc_bootmem_pages, alloc_bootmem_low_pages.
I don't think you need a patch any more.

have a nice day,
-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:13 EST