Unmap pages from a VMA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 - thomas.petazzoni@xxxxxxxx
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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux