O'Reilly logo

The Linux Programming Interface by Michael Kerrisk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 50. Virtual Memory Operations

This chapter looks at various system calls that perform operations on a process’s virtual address space:

  • The mprotect() system call changes the protection on a region of virtual memory.

  • The mlock() and mlockall() system calls lock a region of virtual memory into physical memory, thus preventing it from being swapped out.

  • The mincore() system call allows a process to determine whether the pages in a region of virtual memory are resident in physical memory.

  • The madvise() system call allows a process to advise the kernel about its future patterns of usage of a virtual memory region.

Some of these system calls find particular use in conjunction with shared memory regions (Chapter 48, Chapter 49, and Chapter 54), but ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required