Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

madvise (nr 28)

Linux Signature

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

Description

Give advice about use of memory.

Current Implementation

Stub: Returns 0 (success) unconditionally. All advice is ignored. musl and Rust std may call madvise(MADV_DONTNEED) on freed memory regions.

Source: osl/src/syscalls/mod.rs — inline stub in syscall_dispatch