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