Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter, we considered various operations that can be performed on a process’s virtual memory:
The mprotect() system call changes the protection on a region of virtual memory.
The mlock() and mlockall() system calls lock part or all of a process’s virtual address space, respectively, into physical memory.
The mincore() system call reports which pages in a virtual memory region are currently resident in physical memory.
The madvise() system call and the posix_madvise() function allow a process to advise the kernel about the process’s expected patterns of memory use.