Re: [PATCH 4/6] fs/proc/page.c: introduce /proc/kpagecache interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 13, 2014 at 11:09:10PM +0000, Luck, Tony wrote:
> > Usage is simple: 1) write a file path to be scanned into the interface,
> > and 2) read 64-bit entries, each of which is associated with the page on
> > each page index.
> 
> Do we have other interfaces that work like that?

No, we don't. At first I thought of doing this under /proc/pid, but that did
not work because we want to scan the files which no process opens.

> I suppose this is file is only open
> to "root", so it may be safe to assume that applications using this won't stomp on
> each other.

Right, this is only for testing/debugging purpose (at least for now) so
limiting access is safe.

Thanks,
Naoya

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]