List of memory mapping services

The memory mapping subroutines operate on memory regions that have been mapped with the mmap subroutine.

These subroutines enable you to:

  • Map an object file into virtual memory
  • Synchronize a mapped file
  • Determine residency of memory pages
  • Determine access protections to a mapped memory region
  • Unmap mapped memory regions.

You do not need to specify any special flag to the compiler to use the memory functions. However, you must include the header file for some of these subroutines. If the subroutine description specifies a header file, you can include it with the following statement:

#include <HeaderFile.h>

The following memory mapping services are provided:

Service Description
madvise Advises the system of a process' expected paging behavior.
mincore Determines residency of memory pages.
mmap Maps an object file onto virtual memory.
mprotect Modifies access protections of memory mapping.
msync Synchronizes a mapped file with its underlying storage device.
munmap Unmaps a mapped memory region.