* Difference between kernel logical address and kernel virtual address
@ 2018-08-18 15:18 Abhinav Misra
2018-08-19 6:47 ` Anirban Roy
0 siblings, 1 reply; 2+ messages in thread
From: Abhinav Misra @ 2018-08-18 15:18 UTC (permalink / raw)
To: kernelnewbies
Hi,
In LDD3 book at Ch-15 they mentioned all types of address used in the
kernel.
But wrt the book, not able to understand the difference between kernel
logical and virtual address.
Can somebody elaborate the same with some eg.
BR,Abhinav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180818/5cf0d322/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Difference between kernel logical address and kernel virtual address
2018-08-18 15:18 Difference between kernel logical address and kernel virtual address Abhinav Misra
@ 2018-08-19 6:47 ` Anirban Roy
0 siblings, 0 replies; 2+ messages in thread
From: Anirban Roy @ 2018-08-19 6:47 UTC (permalink / raw)
To: kernelnewbies
Hi,
There are 2 type of virtual address.
One which needs Page table to do the convertion from VIR to PHY.
other which is offset to PHYSICAL_PAGE_OFFSET. [ this is actually also
called as logical address ]. One can directly calculate the Physical
address if Logical address is given.
virtual addess where u need a Page Table to do a conversion.
Virtual address - one way fo calculation . [ address got from vmalloc ]
CR3 + PGD(Virtual Address ) + PMD ( virtual address )+ PTE (
Virtual address )= Physical address
Logical address below is called LOW MEM [ usually get from kmalloc ]
Virtual address - PHYSICAL_PAGE_OFFSET = physical address.
regards
Anirban Roy
On Sat, Aug 18, 2018 at 8:18 AM, Abhinav Misra
<abhitheextremeeng@gmail.com> wrote:
> Hi,
>
> In LDD3 book at Ch-15 they mentioned all types of address used in the
> kernel.
> But wrt the book, not able to understand the difference between kernel
> logical and virtual address.
>
> Can somebody elaborate the same with some eg.
>
> BR,Abhinav
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-19 6:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-18 15:18 Difference between kernel logical address and kernel virtual address Abhinav Misra
2018-08-19 6:47 ` Anirban Roy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).