How to write/copy kernel data in newly allocated cache page?
From: Vineet Joglekar (vinzip_at_indiatimes.com)
Date: 05/20/04
- Next message: Vineet Joglekar: "Re: How to allocate few bytes to a file automatically after creating it?"
- Previous message: Tommy Reynolds: "Re: Accessing a NetWare disk"
- Next in thread: Kasper Dupont: "Re: How to write/copy kernel data in newly allocated cache page?"
- Reply: Kasper Dupont: "Re: How to write/copy kernel data in newly allocated cache page?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Vineet Joglekar: "Re: How to allocate few bytes to a file automatically after creating it?"
- Previous message: Tommy Reynolds: "Re: Accessing a NetWare disk"
- Next in thread: Kasper Dupont: "Re: How to write/copy kernel data in newly allocated cache page?"
- Reply: Kasper Dupont: "Re: How to write/copy kernel data in newly allocated cache page?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|