From: Scott Ehlert <protonic86@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Memory Page Protections
Date: Sat, 9 Jul 2005 03:38:20 -0400 [thread overview]
Message-ID: <d061968f05070900381c971af2@mail.gmail.com> (raw)
I'm currently writing a kernel driver dealing with memory interaction
and I'm having an issue with memory protection. I'm trying to figure
out how I can determine the protection set on a page of memory. For
example, with the mprotect syscall I can specify a set of protection
flags in order to change whether a memory page is readable, writable,
and executable or not. I don't want to change the protection. I'd
really just like to query it and figure out what the current
protection is set to for a particular page of memory.
I'd basically be looking for something similar to VirtualQuery from
WinAPI which I believe could give me that sort of information. I'm
just having trouble finding something like that here in Linux. Is
there some system call that I have overlooked?
reply other threads:[~2005-07-09 7:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=d061968f05070900381c971af2@mail.gmail.com \
--to=protonic86@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.