The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/vm/vm_user.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* 
    2  * Mach Operating System
    3  * Copyright (c) 1993,1991,1990,1989,1988,1987 Carnegie Mellon University
    4  * All Rights Reserved.
    5  * 
    6  * Permission to use, copy, modify and distribute this software and its
    7  * documentation is hereby granted, provided that both the copyright
    8  * notice and this permission notice appear in all copies of the
    9  * software, derivative works or modified versions, and any portions
   10  * thereof, and that both notices appear in supporting documentation.
   11  * 
   12  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
   13  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
   14  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   15  * 
   16  * Carnegie Mellon requests users of this software to return to
   17  * 
   18  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   19  *  School of Computer Science
   20  *  Carnegie Mellon University
   21  *  Pittsburgh PA 15213-3890
   22  * 
   23  * any improvements or extensions that they make and grant Carnegie Mellon
   24  * the rights to redistribute these changes.
   25  */
   26 /*
   27  * HISTORY
   28  * $Log:        vm_user.h,v $
   29  * Revision 2.4  93/11/17  18:58:04  dbg
   30  *      Added ANSI function prototypes.
   31  *      [93/09/28            dbg]
   32  * 
   33  * Revision 2.3  91/05/14  17:51:44  mrt
   34  *      Correcting copyright
   35  * 
   36  * Revision 2.2  91/02/05  18:00:43  mrt
   37  *      Changed to new Mach copyright
   38  *      [91/02/01  16:35:10  mrt]
   39  * 
   40  * Revision 2.1  89/08/03  16:46:17  rwd
   41  * Created.
   42  * 
   43  * Revision 2.5  89/04/18  21:31:31  mwyoung
   44  *      Reset history.
   45  * 
   46  */
   47 /*
   48  *      File:   vm/vm_user.h
   49  *      Author: Avadis Tevanian, Jr., Michael Wayne Young
   50  *      Date:   1986
   51  *
   52  *      Declarations of user-visible virtual address space
   53  *      management functionality.
   54  */
   55 
   56 #ifndef _VM_VM_USER_H_
   57 #define _VM_VM_USER_H_
   58 
   59 #include <mach/kern_return.h>
   60 #include <mach/mach_types.h>
   61 #include <mach/std_types.h>             /* pointer_t */
   62 #include <mach/vm_statistics.h>
   63 
   64 #include <ipc/ipc_types.h>              /* ipc_port_t */
   65 #include <vm/vm_map.h>
   66 
   67 extern kern_return_t    vm_allocate(
   68                 vm_map_t        map,
   69                 vm_offset_t     *addr,  /* in/out */
   70                 vm_size_t       size,
   71                 boolean_t       anywhere);
   72 
   73 extern kern_return_t    vm_deallocate(
   74                 vm_map_t        map,
   75                 vm_offset_t     start,
   76                 vm_size_t       size);
   77 
   78 extern kern_return_t    vm_inherit(
   79                 vm_map_t        map,
   80                 vm_offset_t     start,
   81                 vm_size_t       size,
   82                 vm_inherit_t    new_inheritance);
   83 
   84 extern kern_return_t    vm_protect(
   85                 vm_map_t        map,
   86                 vm_offset_t     start,
   87                 vm_size_t       size,
   88                 boolean_t       set_maximum,
   89                 vm_prot_t       new_protection);
   90 
   91 extern kern_return_t    vm_statistics(
   92                 vm_map_t        map,
   93                 vm_statistics_data_t *stat);    /* out */
   94 
   95 extern kern_return_t    vm_read(
   96                 vm_map_t        map,
   97                 vm_address_t    address,
   98                 vm_size_t       size,
   99                 pointer_t       *data,          /* out */
  100                 vm_size_t       *data_size);    /* out */
  101 
  102 extern kern_return_t    vm_write(
  103                 vm_map_t        map,
  104                 vm_address_t    address,
  105                 pointer_t       data,
  106                 vm_size_t       size);
  107 
  108 extern kern_return_t    vm_copy(
  109                 vm_map_t        map,
  110                 vm_address_t    source_address,
  111                 vm_size_t       size,
  112                 vm_address_t    dest_address);
  113 
  114 extern kern_return_t    vm_map(
  115                 vm_map_t        target_map,
  116                 vm_offset_t     *address,       /* in/out */
  117                 vm_size_t       size,
  118                 vm_offset_t     mask,
  119                 boolean_t       anywhere,
  120                 ipc_port_t      memory_object,
  121                 vm_offset_t     offset,
  122                 boolean_t       copy,
  123                 vm_prot_t       cur_protection,
  124                 vm_prot_t       max_protection,
  125                 vm_inherit_t    inheritance);
  126 
  127 #endif  /* _VM_VM_USER_H_ */

Cache object: 30a3b82c64f20f86c66206281e6badb2


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.