Table of Contents

What is Madvise?

Madvise is a system call used to give directions to the kernel about an address range.

#include <sys/mman.h>

int madvise(void *addr, size_t length, int advice);

Some advice can include: