munmap.2freebsd

Langue: en

Version: 265964 (debian - 07/07/09)

Section: 2 (Appels système)


BSD mandoc

NAME

munmap - remove a mapping

LIBRARY

Lb libc

SYNOPSIS

In sys/mman.h Ft int Fn munmap void *addr size_t len

DESCRIPTION

The Fn munmap system call deletes the mappings for the specified address range, and causes further references to addresses within the range to generate invalid memory references.

RETURN VALUES

Rv -std munmap

ERRORS

The Fn munmap system call will fail if:
Bq Er EINVAL
The Fa addr argument was not page aligned, the Fa len argument was zero or negative, or some part of the region being unmapped is outside the valid address range for a process.

SEE ALSO

madvise(2), mincore(2), mmap(2), mprotect(2), msync(2), getpagesize(3)

HISTORY

The Fn munmap system call first appeared in BSD 4.4