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

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

MUNMAP(2)

Contents


NAME    [Toc]    [Back]

     munmap - remove a mapping

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #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]

     Upon successful completion, munmap returns zero.  Otherwise,
a value of
     -1 is returned and errno is set to indicate the error.

ERRORS    [Toc]    [Back]

     munmap() will fail if:

     [EINVAL]       The  addr parameter was not page aligned, the
len parameter
                   was negative, or some part of the region being
unmapped is
                   not part of the currently valid address space.

SEE ALSO    [Toc]    [Back]

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

HISTORY    [Toc]    [Back]

     The munmap() function first appeared in 4.4BSD.

OpenBSD      3.6                          April      15,     1994
[ 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