Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > OS & Software > The Alternative OS

How to get image of RAM in Linux & Solaris through C++ Programming

Reply
Bookmark / Share this page
Thread Tools
  #1  
Old 08-30-2005
Newcomer, in training
 
Member since: Aug 2005, 13 posts
How to get image of RAM in Linux & Solaris through C++ Programming

I wish to get entire contents of RAM in Linux and Solaris through C++ Programming... Is there any file or API for retrieving the contents... Please send me as soon as possible or advice some guidelines
Reply With Quote
  #2  
Old 08-30-2005
Nodsu's Avatar
TS Special Forces
 
Location: Estonia
Member since: Feb 2002, 9,430 posts
System specs
You can use the /dev/mem and /dev/kmem devices.
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #3  
Old 09-01-2005
Newcomer, in training
 
Member since: Aug 2005, 13 posts
Hi Nodsu,
ThankQ for u'r kind suggestion to access RAM, but i am in the half way i.e., I read some documentations in google regarding /dev/mem that it has some disadvantages( i.e., it works properly in x86 family, it is not compatible.) While accessing the RAM, sometimes executed properly and atlast it is crashed.
Is there any other way for accessing RAM or should /dev/mem be considered as final solution...
I'm eagerly waiting for u'r reply... please send me asap that our project deadline is reached.

Last edited by nagamohan_p; 09-01-2005 at 09:59 AM. Reason: Physical Memory replaced with RAM
Reply With Quote
  #4  
Old 09-01-2005
Nodsu's Avatar
TS Special Forces
 
Location: Estonia
Member since: Feb 2002, 9,430 posts
System specs
One of the cornerstones of modern computer is protected memory and there is no easy way to access the whole virtual memory space. There is no other easy access to system memory AFAIK.

I imagine one could hook to some debugging routines in the kernel, but that would even more cumbersome and less portable. Or maybe force the relevant memory pages to be swapped out and then read in the right part of the swap file.
Reply With Quote
Reply
Thread Tools

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Linux bookmarks Phantasm66 The Alternative OS 14 07-10-2008 10:36 AM
How to mount an ISO image in Linux Phantasm66 The Alternative OS 7 06-04-2007 04:14 AM
How can I network Windows 2000 with a Red Hat Linux PC? acidosmosis The Alternative OS 13 08-08-2005 02:39 PM
To Linux or not to Linux Vehementi The Alternative OS 31 04-22-2005 02:02 PM
Help with motherboard & Ram aussiegirl77 CPUs, Chipsets and Mobos 4 01-13-2005 01:40 AM


All times are GMT -4. The time now is 03:43 PM.