man.bsd.lv manual page server

Manual Page Search Parameters

MADVISE(2) System Calls Manual MADVISE(2)

madvisegive advise about use of memory

madvise(caddr_t addr, int len, int behav);

The () system call allows a process that has knowledge 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 */

msync(2), munmap(2), mprotect(2), mincore(2)

The madvise function first appeared in 4.4BSD.

4.4BSD-Lite2 June 9, 1993 MADVISE(2)