kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Replacing a page in page_cache
Date: Tue, 28 Feb 2012 04:20:22 +0700	[thread overview]
Message-ID: <CAGdaadZgKETUdtF_fhKc-T7NBQUQcVtk5B92rvKZExGCPzHrTw@mail.gmail.com> (raw)
In-Reply-To: <CAJbRZyWy1XUrV+-fSSc-FQ0jenxaa71NeuYqQ909bRjNS2R0mQ@mail.gmail.com>

On Mon, Feb 27, 2012 at 20:41, Jack David <jd6589@gmail.com> wrote:
> Hi All,
>
> I am trying to replace a page which is already present in page_cache.
> Is there any direct way to do so (via some kernel API)? ?My experiment
> is something like, I have a file opened and read completely in user
> space app (just to make sure that all the file is present in page
> cache). From kernel, I am allocating a new page, filling some data
> into it, and want to store this data by replacing some existing page
> from page_cache.

sounds like what you want to do is like normal mmap in user space and
then write new data into it?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

  reply	other threads:[~2012-02-27 21:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27 13:41 Replacing a page in page_cache Jack David
2012-02-27 21:20 ` Mulyadi Santosa [this message]
2012-02-28  6:17   ` Jack David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGdaadZgKETUdtF_fhKc-T7NBQUQcVtk5B92rvKZExGCPzHrTw@mail.gmail.com \
    --to=mulyadi.santosa@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).