sys/mman.h - memory management declarations
The following protection options are defined:
- Page can be read.
- Page can be written.
- Page can be executed.
- Page can not be accessed.
The following flag options are defined:
- Share changes.
- Changes are private.
- Interpret addr exactly.
The following flags are defined for msync():
- Perform asynchronous writes.
- Perform synchronous writes.
- Invalidate mappings.
The following symbolic constants are defined for the mlockall() function:
- Lock currently mapped pages.
- Lock pages that become mapped.
The symbolic constant MAP_FAILED is defined to indicate a failure from the mmap() function.
The size_t and off_t types are defined as described in <sys/types.h>.
The following are declared in <sys/mman.h> as functions and may also be defined as macros. Function prototypes must be provided for use with an ISO C compiler.
int mlock(const void *, size_t); int mlockall(int); void *mmap(void *, size_t, int, int, int, off_t); int mprotect(void *, size_t, int); int msync(void *, size_t, int); int munlock(const void *, size_t); int munlockall(void); int munmap(void *, size_t); int shm_open(const char *, int, mode_t); int shm_unlink(const char *);
The functions mlock(), mlockall(), shm_open(), and shm_unlink() are part of the Realtime Feature Group.
mlock(), mlockall(), mmap(), mprotect(), msync(), munmap(), shm_open(), shm_unlink().