]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
d7e50217 | 6 | * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. |
1c79356b | 7 | * |
d7e50217 A |
8 | * This file contains Original Code and/or Modifications of Original Code |
9 | * as defined in and that are subject to the Apple Public Source License | |
10 | * Version 2.0 (the 'License'). You may not use this file except in | |
11 | * compliance with the License. Please obtain a copy of the License at | |
12 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
13 | * file. | |
14 | * | |
15 | * The Original Code and all software distributed under the License are | |
16 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
1c79356b A |
17 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
18 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
d7e50217 A |
19 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
20 | * Please see the License for the specific language governing rights and | |
21 | * limitations under the License. | |
1c79356b A |
22 | * |
23 | * @APPLE_LICENSE_HEADER_END@ | |
24 | */ | |
25 | /* | |
26 | * @OSF_COPYRIGHT@ | |
27 | */ | |
28 | /* | |
29 | * HISTORY | |
30 | * | |
31 | * Revision 1.1.1.1 1998/09/22 21:05:45 wsanchez | |
32 | * Import of Mac OS X kernel (~semeria) | |
33 | * | |
34 | * Revision 1.1.1.1 1998/03/07 02:26:17 wsanchez | |
35 | * Import of OSF Mach kernel (~mburg) | |
36 | * | |
37 | * Revision 1.2.12.2 1995/01/06 19:52:51 devrcs | |
38 | * mk6 CR668 - 1.3b26 merge | |
39 | * 64bit cleanup | |
40 | * [1994/10/14 03:43:40 dwm] | |
41 | * | |
42 | * Revision 1.2.12.1 1994/09/23 02:46:19 ezf | |
43 | * change marker to not FREE | |
44 | * [1994/09/22 21:44:33 ezf] | |
45 | * | |
46 | * Revision 1.2.2.2 1993/06/09 02:45:03 gm | |
47 | * Added to OSF/1 R1.3 from NMK15.0. | |
48 | * [1993/06/02 21:19:19 jeffc] | |
49 | * | |
50 | * Revision 1.2 1993/04/19 16:41:52 devrcs | |
51 | * ansi C conformance changes | |
52 | * [1993/02/02 18:57:07 david] | |
53 | * | |
54 | * Revision 1.1 1992/09/30 02:32:41 robert | |
55 | * Initial revision | |
56 | * | |
57 | * $EndLog$ | |
58 | */ | |
59 | /* CMU_HIST */ | |
60 | /* | |
61 | * Revision 2.5 91/05/14 17:04:15 mrt | |
62 | * Correcting copyright | |
63 | * | |
64 | * Revision 2.4 91/02/05 17:38:17 mrt | |
65 | * Changed to new Mach copyright | |
66 | * [91/02/01 17:29:40 mrt] | |
67 | * | |
68 | * Revision 2.3 90/06/19 23:00:29 rpd | |
69 | * Added zi_ prefix to zone_info field names. | |
70 | * Added zi_collectable field to zone_info. | |
71 | * Added zn_ prefix to zone_name field names. | |
72 | * [90/06/05 rpd] | |
73 | * | |
74 | * Revision 2.2 90/06/02 15:00:54 rpd | |
75 | * Created. | |
76 | * [90/03/26 23:53:57 rpd] | |
77 | * | |
78 | * Revision 2.2 89/05/06 12:36:08 rpd | |
79 | * Created. | |
80 | * [89/05/06 12:35:19 rpd] | |
81 | * | |
82 | */ | |
83 | /* CMU_ENDHIST */ | |
84 | /* | |
85 | * Mach Operating System | |
86 | * Copyright (c) 1991,1990,1989 Carnegie Mellon University | |
87 | * All Rights Reserved. | |
88 | * | |
89 | * Permission to use, copy, modify and distribute this software and its | |
90 | * documentation is hereby granted, provided that both the copyright | |
91 | * notice and this permission notice appear in all copies of the | |
92 | * software, derivative works or modified versions, and any portions | |
93 | * thereof, and that both notices appear in supporting documentation. | |
94 | * | |
95 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" | |
96 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR | |
97 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. | |
98 | * | |
99 | * Carnegie Mellon requests users of this software to return to | |
100 | * | |
101 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU | |
102 | * School of Computer Science | |
103 | * Carnegie Mellon University | |
104 | * Pittsburgh PA 15213-3890 | |
105 | * | |
106 | * any improvements or extensions that they make and grant Carnegie Mellon | |
107 | * the rights to redistribute these changes. | |
108 | */ | |
109 | /* | |
110 | */ | |
111 | ||
112 | #ifndef _MACH_DEBUG_ZONE_INFO_H_ | |
113 | #define _MACH_DEBUG_ZONE_INFO_H_ | |
114 | ||
115 | #include <mach/boolean.h> | |
116 | #include <mach/machine/vm_types.h> | |
117 | ||
118 | /* | |
119 | * Remember to update the mig type definitions | |
120 | * in mach_debug_types.defs when adding/removing fields. | |
121 | */ | |
122 | ||
123 | #define ZONE_NAME_MAX_LEN 80 | |
124 | ||
125 | typedef struct zone_name { | |
126 | char zn_name[ZONE_NAME_MAX_LEN]; | |
127 | } zone_name_t; | |
128 | ||
129 | typedef zone_name_t *zone_name_array_t; | |
130 | ||
131 | ||
132 | typedef struct zone_info { | |
133 | integer_t zi_count; /* Number of elements used now */ | |
134 | vm_size_t zi_cur_size; /* current memory utilization */ | |
135 | vm_size_t zi_max_size; /* how large can this zone grow */ | |
136 | vm_size_t zi_elem_size; /* size of an element */ | |
137 | vm_size_t zi_alloc_size; /* size used for more memory */ | |
138 | integer_t zi_pageable; /* zone pageable? */ | |
139 | integer_t zi_sleepable; /* sleep if empty? */ | |
140 | integer_t zi_exhaustible; /* merely return if empty? */ | |
141 | integer_t zi_collectable; /* garbage collect elements? */ | |
142 | } zone_info_t; | |
143 | ||
144 | typedef zone_info_t *zone_info_array_t; | |
145 | ||
146 | #endif /* _MACH_DEBUG_ZONE_INFO_H_ */ |