From: Jamie Lokier <lk@tantalophile.demon.co.uk>
To: Andi Kleen <ak@muc.de>
Cc: Mark_H_Johnson@Raytheon.com, linux-mm@kvack.org
Subject: Re: Query on memory management
Date: Thu, 6 Apr 2000 20:30:24 +0200 [thread overview]
Message-ID: <20000406203023.A11979@pcep-jamie.cern.ch> (raw)
In-Reply-To: <20000406173056.08616@colin.muc.de>; from Andi Kleen on Thu, Apr 06, 2000 at 05:30:56PM +0200
Andi Kleen wrote:
> > (4) Is there a "hook" for user defined page replacement or page fault
> > handling? I could not find one.
>
> Just mprotect() the data in user space and set a signal handler for SIGSEGV
> The fault address can be read from the sigcontext_struct passed to the
> signal handler.
But note that this does not handle page faults when systems calls access
the memory. I.e. you'll get EFAULTs when you read/write/ioctl the
protected memory region instead of triggering your SEGV handler.
enjoy,
-- Jamie
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next prev parent reply other threads:[~2000-04-06 18:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-06 14:16 Mark_H_Johnson
2000-04-06 15:30 ` Andi Kleen
2000-04-06 18:30 ` Jamie Lokier [this message]
2000-04-07 19:41 Mark_H_Johnson
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=20000406203023.A11979@pcep-jamie.cern.ch \
--to=lk@tantalophile.demon.co.uk \
--cc=Mark_H_Johnson@Raytheon.com \
--cc=ak@muc.de \
--cc=linux-mm@kvack.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