From mboxrd@z Thu Jan 1 00:00:00 1970 From: mindentropy@gmail.com (mindentropy) Date: Wed, 20 Jul 2011 23:11:45 +0530 Subject: Regarding remap_pfn_page In-Reply-To: References: <201107192326.46034.mindentropy@gmail.com> Message-ID: <201107202311.45621.mindentropy@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org >> When I mmap pages via remap_pfn_page method would the physical frames >> assigned the linear address be contiguous? >remap_pfn_range is just going to established a secondary virtual >address mapping for these pages into the caller process' page tables, >irrespective of whether these pages have kernel linear address or not. Yes I got that. Hopefully the secondary virtual address mapping you are referring to would be the process address space mapping. Just for testing and making it act like I have mmap'd system RAM I have assigned kernel linear addresses to by doing a char *ch = (char *)kmap(pgmem = pfn_to_page(vma->vm_pgoff); setting a value "TEST" and reading it in the userspace process after mmap'ing the physical range. Also I can map different process address space to the same physical page frame right?