How can TUX user module get notified when a page is removed from cache?

Liang Yang <[email protected]>
Newsgroups gmane.network.tux
Message-ID <[email protected]>
Hi,

We can use path_walk() to query Linux kernel file system whether a specific
file
is in the memory cache or not, but now we want our TUX user space module to
get notified regularly from Linux kernel when a page is removed  from memory
cache or a page is added to the memory cache? The purpose of this is we try
to
maintain a table in user module to record the status of files which are once
accessed.
It seems we need to install a callback function in TUX user module for this
event.
How can we do that?

BTW, which function can we use to get the information of all cached files in
Linux
kernel so that we can know which files are cached currently?

Thank you.

Liang
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.