LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-23-2011, 02:02 AM   #1
pradeepn
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
system memory map info when system boots up


Hi All,

I am working on memory diagnostics which includes test suit and utilities. One of the utility ( ‘memory dump’) requires to access entire physical memory and dump its content.

Physical addresses can be accessed through following API’s which are used at different situations
ioremap(offset, size) ;
phys_to_virt(phys_addr);

phys_to_virt() takes the physical address as an argument and gives the already mapped virtual address at system boot up. It will not create any page table entry. So this API is used to get already mapped virtual addresses.

ioremap API creates a page table entry and maps the specified size and returns the starting virtual address. But this API can’t be used for the physical addresses which is already mapped when system comes up.

Now, I want to know the ‘last(final) physical address which is mapped already when system boots up. Where can I get this info ? Any data structure stores this info ?

This info helps me to use above mentioned API’s at right conditions

Thanks
Pradeep
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
In the context of (System Monitor) What is a Memory Map? theKbStockpiler Linux - General 4 03-17-2011 05:58 PM
best system information software like watermark system info for gnome desktop soumya_r Linux - Software 2 12-25-2010 07:15 AM
getting cpu info, system info thru system calls naveenisback Programming 7 06-11-2010 02:06 PM
how to get memory info using system calls or files in linux richmike3 Linux - General 1 12-14-2009 05:17 AM
Wrong memory info in gnome-system-monitor after 2.6.6 kernel upgrade corezapr Linux - Software 1 06-14-2004 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration