Pravin,
I think Pravin wants to know the Page Frame Number in memory management.(virtual<->physical conversion)
But the function drop_pagecache_sb seems to be about the disk cache(file magement or block layer).
Chan
From : "Pranay Srivastava" <pranjas@xxxxxxxxx>
Sent : 2014-03-20 22:05:30 ( +09:00 )
To : pravin jadav <pravin.jadav17@xxxxxxxxx>
Cc : Kernelnewbies@xxxxxxxxxxxxxxxxx <Kernelnewbies@xxxxxxxxxxxxxxxxx>
Subject : Re: how to get PFN of page cache?
Sent : 2014-03-20 22:05:30 ( +09:00 )
To : pravin jadav <pravin.jadav17@xxxxxxxxx>
Cc : Kernelnewbies@xxxxxxxxxxxxxxxxx <Kernelnewbies@xxxxxxxxxxxxxxxxx>
Subject : Re: how to get PFN of page cache?
On Mar 20, 2014 5:22 PM, "pravin jadav" <pravin.jadav17@xxxxxxxxx> wrote:
>
> 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.
>
See drop_pagecache_sb. What exactly you need??
I don't think you'll need to modify or access the memory defined by that page.
So i guess you could do a lockless version when you iterate over pages.
> --
>
> pravin jadav
> M.Tech (IT pursuing )
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
>
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies