vm_map_madvise.9freebsd

Langue: en

Version: 308853 (debian - 07/07/09)

Section: 9 (Appels noyau Linux)


BSD mandoc

NAME

vm_map_madvise - apply advice about use of memory to map entries

SYNOPSIS

In sys/param.h In vm/vm.h In vm/vm_map.h Ft int Fo vm_map_madvise Fa vm_map_t map vm_offset_t start vm_offset_t end int behav Fc  

DESCRIPTION

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

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

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

RETURN VALUES

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

SEE ALSO

madvise(2), vm_map9

AUTHORS

This manual page was written by An Bruce M Simpson Aq bms@spc.org .