vm_map_madvise(9freebsd)

vm_map_madvise9freebsd

Apply advice about use of memory to map entries

Usage

#include <sys/param.h>

#include <vm/vm.h>

#include <vm/vm_map.h>

int

vm_map_madvise(vm_map_t map, vm_offset_t start, vm_offset_t end, int behav);

Overview

The vm_map_madvise() function applies the flags behav to the entries within map between start and end.

Advisories are classified as either those affecting the vm_map_entry structure, or those affecting the underlying objects.

The vm_map_madvise() function is used by the madvise(2) system call.

Return values

The vm_map_madvise() function returns 0 if successful. If the behav argument was not recognised, KERN_INVALID_ARGUMENT is returned.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Authors

This manual page was written by Bruce M Simpson ⟨[email protected]⟩.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.