Kernel routine to "lock" all of the pages of a particular VMA.

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Thu May 9 13:22:01 EDT 2013


On Thu, 09 May 2013 22:25:54 +0530, Buland Kumar Singh said:

> Is there a kernel routine ( not a system call ) that a kernel module can call to "lock"
> all of the pages of a particular VMA of a user process that is using the driver ?

What are you trying to accomplish here?  And why isn't using mlock() from the
userspace program an option?

Also, remember that a vma can change in size.  If it increases, something will
need to lock the newly added pages.

(There's a good chance that locking the pages isn't really what you wanted, and
there's some other way to achieve whatever goal you're chasing here)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130509/35648c9a/attachment.bin 


More information about the Kernelnewbies mailing list