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

From: Kasper Dupont (kasperd_at_daimi.au.dk)
Date: 05/20/04

  • Next message: Raqueeb Hassan: "Dual booting from xp's NTFS partition using LILO?"
    Date: Thu, 20 May 2004 19:54:31 +0200
    
    

    Vineet Joglekar wrote:
    >
    > 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.

    I don't think you should allocate the page. You should
    make sure the page is in page cache, and modify it there.

    Are you going to overwrite every byte of that page? Or
    are you only going to modify parts of the page?

    FUT: cold.system

    -- 
    Kasper Dupont -- der bruger for meget tid paa usenet.
    For sending spam use abuse@mk.lir.dk and kasperd@mk.lir.dk
    I'd rather be a hammer than a nail.
    

  • Next message: Raqueeb Hassan: "Dual booting from xp's NTFS partition using LILO?"

    Relevant Pages