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/kern/kalloc.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:        kalloc.h,v $
   29  * Revision 2.8  93/11/17  17:13:07  dbg
   30  *      ANSI-fied.
   31  *      [93/06/16            dbg]
   32  * 
   33  * Revision 2.7  91/05/18  14:31:59  rpd
   34  *      Added kalloc_init.
   35  *      [91/03/22            rpd]
   36  * 
   37  * Revision 2.6  91/05/14  16:43:32  mrt
   38  *      Correcting copyright
   39  * 
   40  * Revision 2.5  91/02/05  17:27:26  mrt
   41  *      Changed to new Mach copyright
   42  *      [91/02/01  16:14:21  mrt]
   43  * 
   44  * Revision 2.4  90/06/02  14:54:51  rpd
   45  *      Changed types to vm_offset_t.
   46  *      [90/03/26  22:07:07  rpd]
   47  * 
   48  * Revision 2.3  89/09/08  11:25:56  dbg
   49  *      MACH_KERNEL: remove non-MACH data types.
   50  *      [89/07/11            dbg]
   51  * 
   52  * Revision 2.2  89/08/31  16:19:04  rwd
   53  *      First Checkin
   54  *      [89/08/23  15:41:50  rwd]
   55  * 
   56  * Revision 2.10  89/03/09  20:13:03  rpd
   57  *      More cleanup.
   58  * 
   59  * Revision 2.9  89/02/25  18:04:45  gm0w
   60  *      Kernel code cleanup.    
   61  *      Put entire file under #ifdef KERNEL
   62  *      [89/02/15            mrt]
   63  * 
   64  * Revision 2.8  89/02/07  01:01:53  mwyoung
   65  *      Relocated from sys/kalloc.h
   66  * 
   67  * Revision 2.7  89/01/18  02:10:51  jsb
   68  *      Fixed log.
   69  *      [88/01/18            rpd]
   70  * 
   71  * Revision 2.2  89/01/18  01:16:25  jsb
   72  *      Use MINSIZE of 16 instead of 64 (mostly for afs);
   73  *      eliminate NQUEUES (see kalloc.c).
   74  *      [89/01/13            jsb]
   75  *
   76  * 26-Oct-87 Peter King (king) at NeXT, Inc.
   77  *      Created.
   78  */ 
   79 
   80 #ifndef _KERN_KALLOC_H_
   81 #define _KERN_KALLOC_H_
   82 
   83 #include <mach/machine/vm_types.h>
   84 
   85 #define MINSIZE 16
   86 
   87 extern vm_offset_t kalloc(vm_size_t);
   88 extern vm_offset_t kget(vm_size_t);
   89 extern void kfree(vm_offset_t, vm_size_t);
   90 
   91 extern void kalloc_init(void);
   92 
   93 #endif  /* _KERN_KALLOC_H_ */

Cache object: 50f091651b17a96025bec83253fb72d1


[ 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.