From: ralphc@pathscale.com
To: linux-kernel@vger.kernel.org
Subject: How to revoke mmap mappings
Date: Thu, 10 Aug 2006 09:50:32 -0700 (PDT) [thread overview]
Message-ID: <52827.71.131.40.63.1155228632.squirrel@rocky.pathscale.com> (raw)
I am looking for suggestions on how a device driver which implements
mmap() similar to the "scullv" example driver can revoke the
mapping. I would like the driver to be able to invalidate
all of the pages faulted in through struct vm_operations_struct.nopage
so that the vmalloc() memory can be freed. If the user process
tries to touch the mmap region afterwards, it will get a SIGBUS
or SIGSEGV.
I looked in mm/memory.c but unmap_mapping_range() and
vmtruncate() require file mappings so I don't think I
can use these.
reply other threads:[~2006-08-10 16:50 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=52827.71.131.40.63.1155228632.squirrel@rocky.pathscale.com \
--to=ralphc@pathscale.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 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®