Thomas Petazzoni wrote: > Hi, > > Le Fri, 21 Jul 2006 09:10:47 -0400, > Mark Hounschell <markh@xxxxxxxxxx> a écrit : > >>> Use copy_from_user() in the kernel. It will automagically fetch the >>> page from swap or from anywhere it is. >> Wouldn't mlockall used in the application do it? > > It would do it, but that's completely useless to mlock() an entire > application just for this reason. > > copy_from_user() and copy_to_user() are specifically designed to handle > page faults that may occur during the copy. They allow the page of the > user application to be retrived from the backing store transparently. > Just as if the page was accessed by the application itself. > > Sincerly, > > Thomas Sorry I should have just said mlock and friends. Mark -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/