*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> vm_map_inherit (9)              
Title
Content
Arch
Section
 

vm_map_inherit(9)

Contents


NAME    [Toc]    [Back]

     vm_map_inherit -- set fork inheritance flags for a range within a map

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <vm/vm.h>
     #include <vm/vm_map.h>

     int
     vm_map_inherit(vm_map_t map, vm_offset_t start, vm_offset_t end,
	 vm_inherit_t new_inheritance);

DESCRIPTION    [Toc]    [Back]

     The vm_map_inherit() function sets the inheritance flags for the range
     start to end within the target map to the value new_inheritance.

     The new_inheritance flag must have one of the values VM_INHERIT_NONE,
     VM_INHERIT_COPY, or VM_INHERIT_SHARE.  This affects how the map will be
     shared with child maps when the associated process forks.

IMPLEMENTATION NOTES    [Toc]    [Back]

     The function obtains a lock on the map using vm_map_lock(9) for the duration
 of the function.

RETURN VALUES    [Toc]    [Back]

     The vm_map_inherit() function returns KERN_SUCCESS if the inheritance
     flags could be set.  Otherwise, if the provided flags were invalid,
     KERN_INVALID_ARGUMENT will be returned.

SEE ALSO    [Toc]    [Back]

      
      
     fork(2)

AUTHORS    [Toc]    [Back]

     This man page was written by Bruce M Simpson <[email protected]>.


				 July 19, 2003
[ Back ]
 Similar pages
Name OS Title
minherit NetBSD control the inheritance of pages
minherit FreeBSD control the inheritance of pages
minherit OpenBSD control the inheritance of pages
iflClassList IRIX class inheritance chain
pthread_attr_setinheritsched IRIX thread scheduling inheritance attributes
perlfork OpenBSD Perl's fork() emulation
openpty Tru64 Open and fork pseudoterminals
forkpty Tru64 Open and fork pseudoterminals
pthread_atfork IRIX register fork() handlers
atfork IRIX add fork pre and post interception routines
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service