remap_page_range() vs nopage()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, 

It's being told 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



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux