Would it be possible for the driver to give root privileges to the process, at least temporarily, so that the library can call sys_mlock() instead? Obviously, there would be security issues with this, but let's ignore that for the moment.
-- Timur Tabi Staff Software Engineer timur.tabi@xxxxxxxxxxx
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/