munmap

Read syntax diagramSkip visual syntax diagrammunmapaddresslength

Function

munmap removes the mapping for pages that were established by the mmap service.

Parameters

address
The address of the existing mapping that is to be unmapped.
length
The length in bytes of the mapping that is to be unmapped.

Example

To remove a one-page mapping that was established by the mmap service at the address in variable addr:
'munmap (addr) 4096'