On Mon, 2006-10-02 at 13:19 +0200, Kay Sievers wrote: > How do you solve the problem with such a solution, that your > "emergency" code hasn't been swapped out when you detect that your laptop > is falling right now? I'm not sure, that you can solve such timing critical > problem in userspace. The code he linked to simply does mlockall(). johannes