All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: remap_page_range() vs nopage()]
@ 2004-07-14 22:43 Michel Hubert
  2004-07-14 22:56 ` William Lee Irwin III
  0 siblings, 1 reply; 2+ messages in thread
From: Michel Hubert @ 2004-07-14 22:43 UTC (permalink / raw)
  To: linux-mm

Hello, 

I previously posted this question to kernelnewbies.org but without 
getting any answer.  I hope it is not too basic for this mailing list...

It's written in Linux Device Driver 2nd edition that remap_page_range
(which maps an entire range at once) should be used for device IO
whereas nopage (which maps a single page at a time) should be used for
real physical memory.

However, I noticed that mmap_mem() in drivers/char/mem.c uses
exclusively remap_page_range.  How could this work when dealing with non
contiguous physical memory ?

Thank you, 

Michel


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

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

* Re: [Fwd: remap_page_range() vs nopage()]
  2004-07-14 22:43 [Fwd: remap_page_range() vs nopage()] Michel Hubert
@ 2004-07-14 22:56 ` William Lee Irwin III
  0 siblings, 0 replies; 2+ messages in thread
From: William Lee Irwin III @ 2004-07-14 22:56 UTC (permalink / raw)
  To: Michel Hubert; +Cc: linux-mm

On Wed, Jul 14, 2004 at 06:43:06PM -0400, Michel Hubert wrote:
> I previously posted this question to kernelnewbies.org but without 
> getting any answer.  I hope it is not too basic for this mailing list...
> It's written in Linux Device Driver 2nd edition that remap_page_range
> (which maps an entire range at once) should be used for device IO
> whereas nopage (which maps a single page at a time) should be used for
> real physical memory.
> However, I noticed that mmap_mem() in drivers/char/mem.c uses
> exclusively remap_page_range.  How could this work when dealing with non
> contiguous physical memory ?

I gave up on fixing this and the highmem issue with mem.c a while ago.
There's holy penguin pee here, beware.


-- wli
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

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

end of thread, other threads:[~2004-07-14 22:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-14 22:43 [Fwd: remap_page_range() vs nopage()] Michel Hubert
2004-07-14 22:56 ` William Lee Irwin III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.