About remap_page_range()

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

 



Hi,

Linux Device Drivers, 2nd edition mentions following things about
"remap_page_range()" :

-----------------------------------------------------------------------------------------------------------
An interesting limitation of remap_page_range is that it gives access only to
reserved pages and physical addresses above the top of physical memory.
Reserved pages are locked in memory and are the only ones that can be safely
mapped to user space; this limitation is a basic requirement for
system stability.

Therefore, remap_page_range won't allow you to remap conventional
addressesâwhich include the ones you obtain by calling get_free_page.
-----------------------------------------------------------------------------------------------------------

what I understood of this is, RAM address can't be remapped to some
virtual address using remap_page_range() function..... is this right?

If it is right, then how come the frame buffer driver
(/drivers/video/fbmem.c) uses this function to map the virtual address
to the physical one (which is a RAM address)?

Thanks in advance for your answer.

Sandeep
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux