Can you use mlock() from user space, before you pass down the memory to kernel space ?
Another reason why can't use mlock() is that only root can call it.
-- Timur Tabi Staff Software Engineer timur.tabi@ammasso.com
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/