Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



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

nagamohan_p
08-30-2005, 04:49 AM
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

Nodsu
08-30-2005, 05:48 AM
You can use the /dev/mem and /dev/kmem devices.

Ad
08-30-2005, 05:48 AM
  

nagamohan_p
09-01-2005, 09:56 AM
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. :blackeye:

Nodsu
09-01-2005, 10:12 AM
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.

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Sony: PlayStation 3 to be 3D-capable via firmware update

iSuppli: DDR3 to account for over half of DRAM shipments by Q2 2010

Facebook named third most popular video website behind YouTube and Hulu

Patriot introduces new PS-100 SSD series

Sony working on digital store for music, movies, books

More Tech News

  
 Software Downloads

Norton Virus Definitions 2003-07 November 20, 2009

AVG Anti-Virus Updates November 20, 2009

Norton Virus Definitions 2008-09 November 20, 2009

avast! Virus Definitions November 20, 2009

McAfee SuperDAT Update 5808

Kaspersky Anti-Virus Update November 20, 2009

Google SketchUp 7.1.6087

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.