Hi David,<br>
<br>
Thanks for the quick reply. One more thing, in the end I have to memory map a 
DMA buffer allocated using pci_alloc_consisten() function to user space.<br><br><i>> I think you should be leaving the mapping to the core VM routines.</i><br>
<div class="gmail_quote"><i>> Furthermore, I don't think *you* should be calling remap_pfn_range().</i><br></div><br>Let say I have allocated a page using __get_free_pages(). But how would the core VM routines knows that which page I want to memory map? If possible, please explain with example.<br>