


MADVISE(2)                                             MADVISE(2)


NNAAMMEE
       madvise - give advise about use of memory

SSYYNNOOPPSSIISS
       madvise(addr, len, behav)
       ccaaddddrr__tt aaddddrr;;
       iinntt lleenn,, bbeehhaavv;;

DDEESSCCRRIIPPTTIIOONN
       The  _m_a_d_v_i_s_e  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   _<_s_y_s_/_m_m_a_n_._h_>:
       #define  MADV_NORMAL      0     /*  no   further   special
       treatment   */  #define  MADV_RANDOM      1     /*  expect
       random            page            references            */
       #define  MADV_SEQUENTIAL  2     /*  expect sequential ref-
       erences */  #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 */

SSEEEE AALLSSOO
       msync.2, munmap.2, mprotect.2, madvise.2, mincore.2


































                           May 27, 1991                         1


