From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Mosberger Date: Fri, 11 Jan 2002 16:38:52 +0000 Subject: Re: [Linux-ia64] kmalloc() and page sizes Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org >>>>> On Fri, 11 Jan 2002 13:09:11 +0100, Christian Hildner said: Christian> David, the storage I need for my driver has to be mapped Christian> by the 64MB kernel page. The alloc_pages() gives me pages Christian> with virtual addresses outside the kernel mapped Christian> page. Since kmalloc() gives storage at natural alignment Christian> this call is perfect to overlay the storage with an Christian> additional mapping with 256KB page size. The page allocator returns memory in the identity mapped kernel segment, just like kmalloc(). In fact, kmalloc() is implemented on top of the page allocator. Also, the page allocator uses the buddy system, so the memory is aligned according to the allocation order. --david