Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: gutleber@arcs.ac.at (Gutleber Johannes)
Subject: Determining begin and end of a page
Date: 1996/02/07	[thread overview]
Message-ID: <4fapo4$1dkq@ftp.univie.ac.at> (raw)


I want to write a page fault handling routine.
I know that I can change the pages protection with the
mprotect() system call. I know how to determine when a read/write
violation to this protected page happend by using a signal routine.
I also know which word in the page has been accessed and caused the
violation by examining the signal context.


Question: How can I get the first and/or the last byte/word in the
          page in which the violation happened?

          I am searching for something like:
          double *get_beginning_of_page (double *address);

If anybody knows a solution please help me.
Thank You
Johannes Gutleber.



                 reply	other threads:[~1996-02-07  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox