SYNOPSIS
#include <sys/mman.h>
int munmap(void *addr, size_t len);
DESCRIPTION
The function
addr must be a multiple
of the page size as returned by
PARAMETERS
- addr
-
Is the address from where the mapped region should be unmapped.
- len
-
Is the number of bytes to unmap.
RETURN VALUES
If successful, the
- EINVAL
-
The addr argument is not a multiple of page size as returned by
sysconf() . - EINVAL
-
The len argument has a value less than or equal to 0.
- EINVAL
-
Addresses in the range [addr, addr + len] are outside the valid range for the address space of the process.
- EINVAL
-
The address and the length specified [addr, addr + len] partially unmaps the mapped region.
CONFORMANCE
UNIX 98 with exceptions.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
Partial unmapping of the mapped regions is not supported. The length and address specified must complete match one or more continuous memory mapped regions.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.5 Documentation Build 40.