Accessing other Process's Address Space

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

 



Hello,

       I need to access the address space of Process say P2 from
Process P1 while trying to take a complete dump of P2 (I have to
migrate P2 to a remote machine) . I have the process descriptor of P2
available in P1. Using this proc_desc I got the addresses of the
vm_areas associated with P2 but I  realized that I will not be able to
use these directly to access the memory regions. Since the local page
descriptor table for P1 will not be having the corresponding entries. I
just require the read permissions for memory regions of P2. Could
somebody please give me hints on the following :

1. Where exactly should I look for the Hardware pages of P2?  
2. Will it be sufficient to get the handle of the hardware pages and 
then read from the same ?

3. Can I map the memory regions of P2 in P1 and if so then how ?

       Any suggestions would be welcome. 

Thanks in Advance,
Anant


=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anant Kumar Gupta
III A - 3,Nehru Nagar,
Ghaziabad. U.P.201 001. Phone : 4720720, 4714714
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Perfection is my goal and 
only Excellence will be Tolerated.

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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