Re: Newbie: allocating aligned physically-contiguous memory?



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?
.



Relevant Pages

  • Re: Computer locking up
    ... Select System and click the Advanced tab. ... You can change Virtual Memory setting by following these ... The Services Window opens. ... Set the Startup type drop down menu to disabled. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: start up program problems
    ... > the startup of too many apps loading using valuable system resources. ... Either the virtual memory or the physical memory ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: whats wrong with my computer?
    ... >> Thanks, Sheila. ... >> There is a lot of stuff that loads at startup. ... and make sure the computer is counting all the MB of RAM ... which would be moving a lot of stuff to virtual memory. ...
    (sci.med.transcription)
  • Re: whats wrong with my computer?
    ... Oh, yeah, if you don't ordinarily look at your startup screen, pay attention ... are in there - it's always possible that some of your physical RAM has gone ... which would be moving a lot of stuff to virtual memory. ... > processes/malware running in the background. ...
    (sci.med.transcription)
  • Re: CreateToolhelp32Snapshot
    ... A snapshot tries to reserve 1MB of virtual memory. ... processes in the system and sometimes the function fails on WM5.0 with ... which did help - now the function only fails 1 out of 30 of the ...
    (microsoft.public.pocketpc.developer)