Hi,

The nopage() method of a VMA is called when a page fault occurs on that
VMA, and this method allows the driver being mmap()ed which page should
be mapped at the fault address. Works nicely.

However, how can the driver unmap some pages of a VMA, so that at the
next access from userspace, a new call to the nopage() method is done ?

It would allow to change the mapping of the contents of the VMA, which
would be useful for drivers that needs to do temporary mappings of
pages.

Someone asked on the linux-kernel mailing-list in 2001 [1], but the
solution [2] was not very beautiful. Is something cleaner available
today ?

Thanks,

Thomas

[1] http://www.cs.helsinki.fi/linux/linux-kernel/2001-22/0201.html
[2] http://www.cs.helsinki.fi/linux/linux-kernel/2001-22/0631.html
-- 
Thomas Petazzoni - [EMAIL PROTECTED]
http://{thomas,sos,kos}.enix.org - http://www.toulibre.org
http://www.{livret,agenda}dulibre.org

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to