On 12/13/10 02:19 AM, 邓宁 wrote: > Dear all, > > The memory management module in my dynamic link library need to make a > new virtual-to-physical memory mapping relationship during runtime, I > wonder if there is some function in solaris can support the modification > of virtual-physical mapping in pagetable, or in MMU. The expected entry > in solaris is going to have the similar function as virt_to_phys in > linux. Thank you in advance for your attention!
The Linux man page for virt_to_phys: http://mirror.linux.org.au/linux-mandocs/2.6.12.6/virt_to_phys.html does not agree with your description above. From the description: The returned physical address is the physical (CPU) mapping for the memory address given. It is only valid to use this function on addresses directly mapped or allocated via kmalloc. This function does not give bus mappings for DMA transfers. In almost all conceivable cases a device driver should not be using this function _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
