*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> munmap (2)              
Title
Content
Arch
Section
 

MUNMAP(2)

Contents


NAME    [Toc]    [Back]

     munmap -- remove a mapping

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <sys/mman.h>

     int
     munmap(void *addr, size_t len);

DESCRIPTION    [Toc]    [Back]

     The 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    [Toc]    [Back]

     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.

ERRORS    [Toc]    [Back]

     The munmap() system call will fail if:

     [EINVAL]		The addr argument was not page aligned, the 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    [Toc]    [Back]

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

HISTORY    [Toc]    [Back]

     The munmap() system call first appeared in 4.4BSD.


FreeBSD 5.2.1			 May 27, 1994			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
mman HP-UX memory mapping definitions
mprotect IRIX set protection of memory mapping
pmap_addr_hint FreeBSD get a hint for the best-fit mapping of a VM object
iomap HP-UX physical I/O address mapping
bus_dmamap_unload FreeBSD Bus and Machine Independent DMA Mapping Interface
bus_dmamem_alloc FreeBSD Bus and Machine Independent DMA Mapping Interface
bus_dmamap_sync FreeBSD Bus and Machine Independent DMA Mapping Interface
bus_dmamap_load_uio FreeBSD Bus and Machine Independent DMA Mapping Interface
bus_dmamap_load_mbuf FreeBSD Bus and Machine Independent DMA Mapping Interface
bus_dmamap_load FreeBSD Bus and Machine Independent DMA Mapping Interface
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service