Re: Linux 2.6 : physical memory address and pid

2005-03-12 Thread Robert Hancock
Allison wrote: Thanks for the answer! Another related question : I need to gather all application pages by reading the page tables. The hard part is, I need to do this from a PCI device using DMA. As I understand it, when a DMA is being performed, the pages are pinned in memory . Since the PCI

Re: Linux 2.6 : physical memory address and pid

2005-03-12 Thread Allison
Thanks for the answer! Another related question : I need to gather all application pages by reading the page tables. The hard part is, I need to do this from a PCI device using DMA. As I understand it, when a DMA is being performed, the pages are pinned in memory . Since the PCI device has gr

Re: Linux 2.6 : physical memory address and pid

2005-03-12 Thread Matt Mackall
On Sat, Mar 12, 2005 at 08:05:11PM -0500, firefly blue wrote: > Hi, > > With the 2.6 Linux kernel, I want to find, from the physical page > frame, the virtual address of the page loaded in the frame and the > process id of the process owning it. Follow struct page->mapping to struct address_space

Linux 2.6 : physical memory address and pid

2005-03-12 Thread firefly blue
Hi, With the 2.6 Linux kernel, I want to find, from the physical page frame, the virtual address of the page loaded in the frame and the process id of the process owning it. I know that 2.6 kernel implements rmap where the page points to a pte chain. But how to I get to the pid and virtual addres