mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chris Wedgwood <cw@f00f.org>
To: Leslie Donaldson <donaldlf@hermes.cs.rose-hulman.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Question: Memory change request
Date: Wed, 24 Jan 2001 21:05:00 +1300	[thread overview]
Message-ID: <20010124210500.B7029@metastasis.f00f.org> (raw)
In-Reply-To: <3A6E79EA.C2AD3806@mailhost.cs.rose-hulman.edu>
In-Reply-To: <3A6E79EA.C2AD3806@mailhost.cs.rose-hulman.edu>; from donaldlf@hermes.cs.rose-hulman.edu on Wed, Jan 24, 2001 at 12:44:58AM -0600

On Wed, Jan 24, 2001 at 12:44:58AM -0600, Leslie Donaldson wrote:

    I need a block of memory that can notify me or even a flag set when
    it has been written to. I was thinking of letting the user code generate
    some sort of page fault... Any random thoughts would be greatly
    appreciated.
    
    mmm ... Basically dirty page logic for user space....

mprotect the page(s) you are interested in so you can't write to them
and catch SEGV -- when someone attempts to write you can pull apart
the stack frame mark the page(s) RO and continue.

if you are really stuck i think i have example code to do this
somewhere for ia32 (stack frame is arch. dependent)


  --cw


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2001-01-24  8:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-24  6:44 Leslie Donaldson
2001-01-24  8:05 ` Chris Wedgwood [this message]
2001-01-24  8:47   ` David Schwartz
2001-01-24 12:03     ` Chris Wedgwood
2001-01-25 18:48 ` Jamie Lokier

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=20010124210500.B7029@metastasis.f00f.org \
    --to=cw@f00f.org \
    --cc=donaldlf@hermes.cs.rose-hulman.edu \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®