Thread (5 messages) 5 messages, 4 authors, 2011-02-20

Page Table query

From: Anuz Pratap Singh Tomar <hidden>
Date: 2011-02-19 06:53:50

On Sat, Feb 19, 2011 at 6:40 AM, anish singh [off-list ref]wrote:
As i understood whenver a user space program is run it is represented in
kernel using VMA which is managed by struct mm_struct
and whenever the program is trying to read/write to a memory location in
user space it will be directed to physical address using PAGE TABLE
translation done by struct mm_struct(done in kernel space).Am i right?

Suppose a simple driver wants the user to directly access its device memory
then we use mmap.This mmap associates a set of user space virtual address
with device driver memory and it is done by creating kernel page tables for
the user space virtual addresses.Is the page table translation done
everytime whenever user space does read/write to the device memory??

In .nopage function call we return the page associated with the physical
address which the user wants to associate with user space virtual address.Is
the page address returned by the nopage function same as seen by the user or
will it be converted to user space virtual address(range between 0-2 GB)?

Thanks for reading.

Can you please not post the same stuff twice?
Be patient, people do reply to queries here quite often, why show this
desperation?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110219/bebe6063/attachment-0001.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help