you can use msync() with MS_INVALIDATE. -Chuck
On Sat, Nov 29, 2014 at 01:06:10PM +0100, Emmanuel Dreyfus wrote: > Hi > > Is there a way to invalidate the page cache of a given file, from > userland? I understand fsync() will flush pending writes, but what about > if we want to flush cached data? > > -- > Emmanuel Dreyfus > http://hcpnet.free.fr/pubz > [email protected]
