Please check the manual page mlock(2).