Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.
How to get image of RAM in Linux & Solaris through C++ Programming
|
|||||||
![]() |
| Thread Tools |
|
#1
|
|||
|
|||
|
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
|
|
#2
|
||||
|
||||
|
You can use the /dev/mem and /dev/kmem devices.
|
|
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
|
| 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.




