mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* How to revoke mmap mappings
@ 2006-08-10 16:50 ralphc
  0 siblings, 0 replies; only message in thread
From: ralphc @ 2006-08-10 16:50 UTC (permalink / raw)
  To: linux-kernel

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-10 16:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-10 16:50 How to revoke mmap mappings ralphc

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®