How to write/copy kernel data in newly allocated cache page?

From: Vineet Joglekar (vinzip_at_indiatimes.com)
Date: 05/20/04


Date: 19 May 2004 18:48:04 -0700

Hi all,

While working at the kernel level, I want to write some data to the
file without user knowing about it.
I guess I can allocate a new page using "__grab_cache_page()" and
write/copy that data to the newly allocated page. The page will be
eventually written to the file.
If this idea sounds practical, how do I write/copy the data at kernel
level to that newly allocated page?

Vineet



Relevant Pages