There are some functions to probe (look into) the page tables (for current context.. maybe for all the conext too).
look under /arch/x86(yours)/mm.
This page table is in the memory so the S/W can probe it.
But I don't think we can see whan page table entries we have in the page descriptor cache (that's stored by the MMU hardware).
Chan
From : "Valdis.Kletnieks@xxxxxx" <Valdis.Kletnieks@xxxxxx>
Sent : 2014-03-21 03:49:36 ( +09:00 )
To : pravin jadav <pravin.jadav17@xxxxxxxxx>
Cc : Kernelnewbies@xxxxxxxxxxxxxxxxx <Kernelnewbies@xxxxxxxxxxxxxxxxx>
Subject : Re: how to get PFN of page cache?
On Thu, 20 Mar 2014 17:14:57 +0530, pravin jadav said:
> i want to develop linux kernel module that will get PFN of pagecache pages.
> please help me how to develop this kind of kernel module.
What do you intend to do with the page once you find its PFN? It's quite
possible there's already an API to do what you want without even needing
its PFN - or good technical reasons to not do what your module intends to
do once it has the PFN....
Sent : 2014-03-21 03:49:36 ( +09:00 )
To : pravin jadav <pravin.jadav17@xxxxxxxxx>
Cc : Kernelnewbies@xxxxxxxxxxxxxxxxx <Kernelnewbies@xxxxxxxxxxxxxxxxx>
Subject : Re: how to get PFN of page cache?
On Thu, 20 Mar 2014 17:14:57 +0530, pravin jadav said:
> i want to develop linux kernel module that will get PFN of pagecache pages.
> please help me how to develop this kind of kernel module.
What do you intend to do with the page once you find its PFN? It's quite
possible there's already an API to do what you want without even needing
its PFN - or good technical reasons to not do what your module intends to
do once it has the PFN....
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies