how to get PFN of page cache?

Chan Kim ckim at etri.re.kr
Thu Mar 20 22:39:54 EDT 2014


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 at gmail.com>
Sent : 2014-03-20 22:05:30 ( +09:00 )
To : pravin jadav <pravin.jadav17 at gmail.com>
Cc : Kernelnewbies at kernelnewbies.org <Kernelnewbies at kernelnewbies.org>
Subject : Re: how to get PFN of page cache?


On Mar 20, 2014 5:22 PM, "pravin jadav" <pravin.jadav17 at gmail.com<mailto:pravin.jadav17 at gmail.com>> 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 at kernelnewbies.org<mailto:Kernelnewbies at kernelnewbies.org>
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140321/f6d7dd6f/attachment-0001.html 


More information about the Kernelnewbies mailing list