Page Table query
anish singh
anish198519851985 at gmail.com
Sat Feb 19 01:58:44 EST 2011
On Sat, Feb 19, 2011 at 12:23 PM, Anuz Pratap Singh Tomar <
chambilkethakur at gmail.com> wrote:
>
>
> On Sat, Feb 19, 2011 at 6:40 AM, anish singh <
> anish198519851985 at gmail.com> 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?
>
The reason i sent the mail twice was due to below mail which i am
recieving.However sorry for causing any trouble.
I am getting this erro whenever i am trying to send mail to kernelnewbie.
The attached message had PERMANENT fatal delivery errors!
After one or more unsuccessful delivery attempts the attached message has
been removed from the mail queue on this server. The number and frequency
of delivery attempts are determined by local configuration parameters.
YOUR MESSAGE WAS NOT DELIVERED TO ANY OF IT'S RECIPIENTS!
--- Session Transcript ---
Sat 2011-02-19 12:20:43: Parsing message
<xxxxxxxxxxxxxxxxxx\pd50001482091.msg>
Sat 2011-02-19 12:20:43: * From: anish198519851985 at gmail.com
Sat 2011-02-19 12:20:43: * To: amit at fibcom.com
Sat 2011-02-19 12:20:43: * Subject: Page Table query
Sat 2011-02-19 12:20:43: * Message-ID: <
AANLkTimFPh=JhA5N2mZXsGKZErqJ-ZjU5ETf_Kyw6NON at mail.gmail.com>
Sat 2011-02-19 12:20:43: * Route slip host: 202.71.129.104
Sat 2011-02-19 12:20:43: * Route slip port: 25
Sat 2011-02-19 12:20:43: Attempting SMTP connection to [202.71.129.104]
Sat 2011-02-19 12:20:43: Attempting to send message to smart host
Sat 2011-02-19 12:20:43: Attempting SMTP connection to [202.71.129.104:25]
Sat 2011-02-19 12:20:43: Waiting for socket connection...
Sat 2011-02-19 12:20:43: * Connection established (192.5.1.2:1859 ->
202.71.129.104:25)
Sat 2011-02-19 12:20:43: Waiting for protocol to start...
Sat 2011-02-19 12:20:43: <-- 220 smtp ready smtp.bizmail.net4india.com
Sat 2011-02-19 12:20:43: --> EHLO fibcom.com
Sat 2011-02-19 12:20:43: <-- 250-smtp.bizmail.net4india.com Hello
fibcom.com [203.101.81.201]
Sat 2011-02-19 12:20:43: <-- 250-SIZE 57671680
Sat 2011-02-19 12:20:43: <-- 250-PIPELINING
Sat 2011-02-19 12:20:43: <-- 250 HELP
Sat 2011-02-19 12:20:43: --> MAIL From:<anish198519851985 at gmail.com>
SIZE=6874
Sat 2011-02-19 12:20:43: <-- 250 OK
Sat 2011-02-19 12:20:43: --> RCPT To:<amit at fibcom.com>
Sat 2011-02-19 12:20:43: <-- 550 relay not permitted
--- End Transcript ---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110219/ddee3b83/attachment.html
More information about the Kernelnewbies
mailing list