[Fwd: remap_page_range() vs nopage()]
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 [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 9 lines · Michel Hubert
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 thatmmap_mem()indrivers/char/mem.cuses exclusivelyremap_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 [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>