linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* question on remap_page_range()
@ 1999-08-28 10:03 Gilles Pokam
  1999-08-29 15:18 ` Stephen C. Tweedie
  0 siblings, 1 reply; 4+ messages in thread
From: Gilles Pokam @ 1999-08-28 10:03 UTC (permalink / raw)
  To: linux-mm

Hi everyone,

I have some questions about the behavior of the remap_page_range function as 
well as the ioremap. 

1. remap_page_range (as well as ioremap or vremap) takes a "physical address"
   as argument. In Rubini's book it is said that the so-called "physical
   address" is in reality a virtual address offset by PAGE_OFFSET from the 
   real physical address:
	phys = real_phys + PAGE_OFFSET 
   In x86 2.0.x kernel i had no problems with this convertion because the
   PAGE_OFFSET is almost defined to be 0, so that phys = virt address.

2. But now i have tried to run my code on a x86 2.2.x kernel and the 
   remap_page_range function fails! When i ignore the PAGE_OFFSET macro
   it works strangely ...! 

  My question is, what is the definition of the physical address in the
  remap_page_range and vremap functions ?

  Regards 
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-08-31 10:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-28 10:03 question on remap_page_range() Gilles Pokam
1999-08-29 15:18 ` Stephen C. Tweedie
1999-08-31  8:23   ` Gilles Pokam
1999-08-31 10:58     ` Stephen C. Tweedie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox