how to get PFN of page cache?

Pranay Srivastava pranjas at gmail.com
Thu Mar 20 09:03:44 EDT 2014


On Mar 20, 2014 5:22 PM, "pravin jadav" <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
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140320/8b23f0ec/attachment.html 


More information about the Kernelnewbies mailing list