June 22, 2017
munmap - remove a mapping
.In sys/mman.h int
munmap void *addr size_t len
munmapsystem call deletes the mappings and guards for the specified address range, and causes further references to addresses within the range to generate invalid memory references.
.Rv -std munmap
munmapsystem call will fail if:
|The addr argument was not page aligned, the len argument was zero or negative, or some part of the region being unmapped is outside the valid address range for a process.|
munmapsystem call first appeared in BSD 4.4 .