Re: Regarding remap_pfn_page

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

 



>>  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?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[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