Using mlockall
()
and
munlockall
()
The mlockall
()
and
mlockall
()
interfaces are similar to
mlock
()
and munlock
(), but
mlockall
()
and munlockall
()
operate on an entire address space. The mlockall
()
interface sets locks on all the pages in the address space. The
munlockall
()
interface removes all the locks on
all the pages in the address space, whether established by
mlock
()
or mlockall
().
For more information, see the
mlockall
(3C) and
munlockall
(3C) man pages.