munmap(2)munmap(2)NAMEmunmap - unmap pages of memory
SYNOPSISDESCRIPTION
The function removes the mappings for pages in the range [addr,
addr+len], rounding the len argument up to the next multiple of the
page size as returned by If addr is not the address of a mapping estab‐
lished by a prior call to the behavior is undefined. After a successful
call to and before any subsequent mapping of the unmapped pages, fur‐
ther references to these pages will result in the delivery of a or sig‐
nal to the process.
If the specified address range was created by multiple calls to suc‐
ceeds in unmapping all of the specified regions, provided they form a
contiguous address range.
If the region was created with the option, any modifications made to
the region are discarded.
RETURN VALUE
Upon successful completion, returns Otherwise, it returns and sets to
indicate the error.
ERRORS
The function will fails if:
[EINVAL] The addr argument is not a multiple of the page
size as returned by
[EINVAL] Addresses in the range [addr, addr+len], are out‐
side the valid range for the address space of a
process.
[EINVAL] The address range specified by addr and len was
not created by a successful call to
[EINVAL] The len argument is
AUTHOR
was developed by HP, AT&T, and OSF.
SEE ALSOmmap(2), sysconf(2), <signal.h>, <sys/mman.h>.
STANDARDS CONFORMANCECHANGE HISTORY
First released in Issue 4, Version 2.
munmap(2)