Lines Matching refs:zone
84 * A zone is a collection of fixed size blocks for which there
86 * use zones to manage data structures dynamically, creating a zone
91 struct zone {
94 decl_lck_mtx_data(,lock) /* zone lock */
96 lck_attr_t lock_attr; /* zone lock attribute */
97 lck_grp_t lock_grp; /* zone lock group */
98 lck_grp_attr_t lock_grp_attr; /* zone lock group attribute */
100 vm_size_t max_size; /* how large can this zone grow */
106 /* boolean_t */ expandable :1, /* (T) expand zone (with message)? */
108 /* boolean_t */ doing_alloc :1, /* is zone expanding now? */
112 struct zone * next_zone; /* Link for all-zones list */
114 const char *zone_name; /* a name for the zone */
123 /* Steal memory for zone module */
126 /* Bootstrap zone module (create zone zone) */
129 /* Init zone module */
170 /* Allocate from zone */
172 zone_t zone);
174 /* Free zone element */
176 zone_t zone,
179 /* Create zone */
184 const char *name); /* a name for the zone */
189 zone_t zone);
193 zone_t zone,
196 /* Get from zone free list */
198 zone_t zone);
200 /* Fill zone with memory */
202 zone_t zone,
206 /* Initially fill zone with specified number of elements */
208 zone_t zone,
211 /* Change zone parameters */
213 zone_t zone,
218 #define Z_EXHAUST 1 /* Make zone exhaustible */
219 #define Z_COLLECT 2 /* Make zone collectable */
220 #define Z_EXPAND 3 /* Make zone expandable */
221 #define Z_FOREIGN 4 /* Allow collectable zone to contain foreign elements */
223 /* Preallocate space for zone from zone map */
225 zone_t zone,
229 zone_t zone);