logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

vm_map_madvise — apply advice about use of memory to map entries

Authors

       This manual page was written by Bruce M Simpson <bms@spc.org>.

Debian                                            July 19, 2003                                VM_MAP_MADVISE(9)

Description

       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.

Name

       vm_map_madvise — apply advice about use of memory to map entries

Return Values

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

See Also

madvise(2), vm_map(9)

Synopsis

#include<sys/param.h>#include<vm/vm.h>#include<vm/vm_map.h>intvm_map_madvise(vm_map_tmap, vm_offset_tstart, vm_offset_tend, intbehav);

See Also