lkml.org 
[lkml]   [2008]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 8MB physical memory allocation
On Wed, Sep 10, 2008 at 09:30:05PM -0700, Alessio Sangalli wrote:
> Hi, I'm writing a driver for a video adapter that needs to allocate 8MB
> (maximum resolution) in physical, contiguos memory. I am working on a
> ARM9 platform.

Not sure about arm9, but on ia64, alloc_pages does the trick.

alloc_pages(GFP_KERNEL, 33-PAGE_SHIFT);

Might be slightly large of an allocation for any time other than boot,
but that is the call.

Thanks,
Robin


\
 
 \ /
  Last update: 2008-09-11 11:37    [W:0.034 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site