Query: munmap
OS: hpux
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
munmap(2) System Calls Manual munmap(2)NAMEmunmap - unmap pages of memorySYNOPSISDESCRIPTIONThe 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 established by a prior call to the behavior is undefined. After a successful call to and before any subsequent mapping of the unmapped pages, further 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 succeeds 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 VALUEUpon successful completion, returns Otherwise, it returns and sets to indicate the error.ERRORSThe 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 outside 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 isAUTHORwas developed by HP, AT&T, and OSF.SEE ALSOmmap(2), sysconf(2), <signal.h>, <sys/mman.h>.STANDARDS CONFORMANCECHANGE HISTORYFirst released in Issue 4, Version 2. munmap(2)
Related Man Pages |
---|
mprotect(2) - opensolaris |
munmap(2) - opendarwin |
munmap(2) - hpux |
munmap(2) - osx |
munmap(2) - sunos |
Similar Topics in the Unix Linux Community |
---|
Memory Leaks |
Not able to kill a process |
Root user not recognizing on Solaris-10 (shadow file corruption) |