Re: Newbie: allocating aligned physically-contiguous memory?
- From: Neil Steiner <neil.steiner@xxxxxx>
- Date: Fri, 13 Jul 2007 09:39:29 -0400
I guess you should have a look at the __get_free_pages() function,
it returns (if available) a number of physically contiguous pages
(of course starting on a page bondary-:).
Thanks for the thoughts, Jens. I ended up passing a mem= parameter to the kernel at startup to reserve the upper 4MB for two framebuffers, and then just ioremap'ing both of those blocks into virtual memory.
As for making those blocks visible to user memory, do I have to use /dev/kmem, or is there a more transparent way?
.
- Follow-Ups:
- Re: Newbie: allocating aligned physically-contiguous memory?
- From: Neil Steiner
- Re: Newbie: allocating aligned physically-contiguous memory?
- References:
- Newbie: allocating aligned physically-contiguous memory?
- From: Neil Steiner
- Re: Newbie: allocating aligned physically-contiguous memory?
- From: Jens Thoms Toerring
- Newbie: allocating aligned physically-contiguous memory?
- Prev by Date: Re: char device driver and bus ?
- Next by Date: Re: Newbie: allocating aligned physically-contiguous memory?
- Previous by thread: Re: Newbie: allocating aligned physically-contiguous memory?
- Next by thread: Re: Newbie: allocating aligned physically-contiguous memory?
- Index(es):
Relevant Pages
|