MUNMAP(2)
π MUNMAP(2) π
okay bestie, welcome to the MUNMAP(2) page from the System Calls Manual β it's giving classic Unix syscall energy, and we're gonna vibe through it together. no cap. π«Ά
πΈ NAME πΈ
munmapβ remove a mapping.
π LIBRARY π
It lives in the Standard C Library (libc, -lc). periodt.
β¨ SYNOPSIS β¨
#include <sys/mman.h>
int
munmap(void *addr, size_t len);
π¦ DESCRIPTION π¦
The munmap() system 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. that's the whole tea. π
π₯ RETURN VALUES π₯
The munmap() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. so like: 0 = success, -1 = error, and errno is set to indicate the error. π
π¨ ERRORS π¨
The munmap() system call will fail if:
[EINVAL]β Theaddrargument was not page aligned, thelenargument was zero or negative, or some part of the region being unmapped is outside the valid address range for a process.
π SEE ALSO π
β HISTORY β
The munmap() system call first appeared in 4.4BSD. iconic behavior fr fr. π
Debian β’ June 22, 2017 β’ MUNMAP(2) β that's the footer, bestie. thanks for reading, mwah. πβ¨
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms