Skip to contentSkip to conversation

How to invalidate pages mapped with nopage vm_operation

DISCUSSION Michael Clark 1 participant 1 message May 26, 2002 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

I got no reply from kernel-newbies. Any one can help me?

Do I use zap_page_range() ?? This doesn't seem to be exported to modules. Any ideas what to do?

~mc

Quoted 18 lines · Michael Clark

Hi,

I have a char driver that implements mmap by overriding the nopage vm_operation (rather than using remap_page_range).

What it the correct way to invalidate these mappings so I will re-take a fault on the next access to the addresses previously mapped by my nopage function?

~mc

Signature · 3 lines
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/