* Determining begin and end of a page
@ 1996-02-07 5:00 Gutleber Johannes
0 siblings, 0 replies; only message in thread
From: Gutleber Johannes @ 1996-02-07 5:00 UTC (permalink / 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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-02-07 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-07 5:00 Determining begin and end of a page Gutleber Johannes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox