On Thu, 2004-04-22 at 14:30 +0000, Cristina Rivera wrote: Hi, Cristina. One of my roommates is your brother, Chris Rivera. He is a nice guy, usually. > I have some questions about memory management in linux. Is there any > way to obtain the physical address of the pages that a process is > ocuppying when it's loaded into memory or it's decided by MMU and > there's no way to get this and I only can get the virtual address? You did not say whether you were inside or outside of the kernel when you wanted this information. I do not believe there is any standard way of getting the information from user-space. >From within the kernel, simply call virt_to_phys(addr) on a pointer 'addr'. The pointer must point to directly allocated or kmalloc'ed memory - no I/O mapping. Robert Love -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/