Resolving physical addresses

2001-03-08 Thread gjohnson
Hi Kernel-dudes, I have used this snippet of code previously in a 2.2 kernel to get the physical address of the user virtual address 'addr'. It worked fine under 2.2, but gives me crap under 2.4. I have looked at bits of code in the 2.4 memory manager that do similar stuff, and it looks much the

Re: Resolving physical addresses

2001-03-08 Thread gjohnson
Thank you, But how do I get the physical address out of the page structure? It is non-obvious to me. Is there some majic macro? We are talking about 'struct page' in mm.h, correct? Greg. Quoth David S. Miller: > In 2.4.x pte_page() gives a pointer to a page struct, not an address > as in 2.2.x.