Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ madvise(2) — BSD/386 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought



MADVISE(2)                                             MADVISE(2)


NAME
       madvise - give advise about use of memory

SYNOPSIS
       madvise(addr, len, behav)
       caddrt addr;
       int len, behav;

DESCRIPTION
       The  madvise  system call allows a process that has knowl-
       edge of its memory behavior to describe it to the  system.
       The known behaviors are given in <sys/mman.h>:

       #define  MADV_NORMAL      0     /* no further special treatment */
       #define  MADV_RANDOM      1     /* expect random page references */
       #define  MADV_SEQUENTIAL  2     /* expect sequential references */
       #define  MADV_WILLNEED    3     /* will need these pages */
       #define  MADV_DONTNEED    4     /* don't need these pages */
       #define  MADV_SPACEAVAIL  5     /* insure that resources are reserved */

SEE ALSO
       msync.2, munmap.2, mprotect.2, madvise.2, mincore.2



































                           May 27, 1991                         1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026