Re: Accessing Physical Memory [0-XXX MB]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



use the /dev/kmem device file and read it as you read
the physical memory.kmem is just an image of the physical memory.

Regards
Suthambhara


On Tue, 2 Nov 2004 20:12:14 +0000, Jon Masters <jonmasters@xxxxxxxxx> wrote:
> On Tue, 02 Nov 2004 10:26:42 -0600, Timur Tabi <timur.tabi@xxxxxxxxxxx> wrote:
> 
> 
> 
> > Jeba Anandhan A wrote:
> 
> > > i like to access physical memory from starting to
> > > end.i wish to copy all contents of physical memory
> > > and processor registers values into one file and when
> > > i boot my machine,i have to place the contents into
> > > RAM inorder to get old state of machine.[ie like
> > > hibernate].help me how to do it.some more questions
> > > are,when should place the content of file into RAM
> 
> > It's a nice idea, but it probably won't work, because you won't be able
> > to re-initialize the state of your I/O devices like this.  That's why
> > hibernate depends on the device drivers to shut down and restore each
> > I/O device, but only the driver knows how to do that.
> 
> More worringly, even if it did work then you'd have to be careful in
> the implementation not to let the kernel go mount the root filesystem
> read/write before restoring an old context, and other similar
> problems.
> 
> Jon.
> 
> 
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux